ButtonPanel.setBorder(border5);
// File Menu Buttons
JPanel p2 = createHorizontalPanel(false);
ButtonPanel.add(p2);
p2.setBorder(new CompoundBorder(new TitledBorder(null, "File Menu", TitledBorder.LEFT, TitledBorder.TOP), border5));
// Add Button
JButton btn;
btn = createSaveButton();
p2.add(btn);
group.add(btn);
p2.add(Box.createRigidArea(VGAP5));
btn = createLoadlButton();
p2.add(btn);
group.add(btn);
p2.add(Box.createRigidArea(VGAP5));
//btn = createSaveAsButton();
//p2.add(btn);
//group.add(btn);
//p2.add(Box.createRigidArea(VGAP5));
btn = createSaveWorldButton();
p2.add(btn);
group.add(btn);
p2.add(Box.createRigidArea(VGAP5));
btn = createLoadWorldButton();
p2.add(btn);
group.add(btn);
p2.add(Box.createRigidArea(VGAP5));
// Simulation Mode Buttons
p2 = createHorizontalPanel(false);
ButtonPanel.add(p2);
p2.setBorder(new CompoundBorder(new TitledBorder(null, "Mode",
TitledBorder.LEFT, TitledBorder.TOP), border5));
// Add Button
btn = createEditModeButton();
p2.add(btn);
group.add(btn);
p2.add(Box.createRigidArea(VGAP5));
btn = createSimModeButton();
p2.add(btn);
group.add(btn);
p2.add(Box.createRigidArea(VGAP5));
// Simulation Action Buttons
p2 = createHorizontalPanel(false);
ButtonPanel.add(p2);
p2.setBorder(new CompoundBorder(new TitledBorder(null, "Simulation", TitledBorder.LEFT, TitledBorder.TOP), border5));
// Add Button
btn = createRunButton();
p2.add(btn);
group.add(btn);
p2.add(Box.createRigidArea(VGAP5));
btn = createStopButton();
p2.add(btn);
group.add(btn);
p2.add(Box.createRigidArea(VGAP5));
btn = createResetButton();
p2.add(btn);
group.add(btn);
p2.add(Box.createRigidArea(VGAP5));
btn = createSpeedChangeButton();
p2.add(btn);
group.add(btn);
p2.add(Box.createRigidArea(VGAP5));
btn = createAreaChangeButton();
p2.add(btn);
group.add(btn);
p2.add(Box.createRigidArea(VGAP5));
//btn = createGetSOIInfoButton();
//p2.add(btn);
//group.add(btn);
//p2.add(Box.createRigidArea(VGAP5));
// Screen Action Buttons
p2 = createHorizontalPanel(false);
ButtonPanel.add(p2);
p2.setBorder(new CompoundBorder(new TitledBorder(null, "Screen", TitledBorder.LEFT, TitledBorder.TOP), border5));
// Add Button
btn = createShowInfoButton();
p2.add(btn);
group.add(btn);