Square or Hexagon Cell
- allows to select between square and hexagon representation - remark : this is still a square model
This commit is contained in:
@@ -388,11 +388,18 @@ public class MazeControler extends JPanel {
|
||||
display.setAutoSize(autoSlide.isSelected());
|
||||
}
|
||||
});
|
||||
final JCheckBox hexagon = new JCheckBox("hexagon");
|
||||
hexagon.addChangeListener(new ChangeListener() {
|
||||
public void stateChanged(ChangeEvent e) {
|
||||
display.setHexagon(hexagon.isSelected());
|
||||
}
|
||||
});
|
||||
|
||||
JPanel resizecontrol = new JPanel(new FlowLayout());
|
||||
resizecontrol.add(showAll);
|
||||
resizecontrol.add(slider);
|
||||
resizecontrol.add(autoSlide);
|
||||
resizecontrol.add(hexagon);
|
||||
|
||||
return resizecontrol;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user