|
@@ -24,14 +24,18 @@ public class Controls extends JPanel implements Observer, Serializable
|
|
|
grid.setSelected(true);
|
|
|
list.setSelected(false);
|
|
|
model.switchLayout(true);
|
|
|
- grid.setIcon(lightGridIcon);
|
|
|
+ //grid.setIcon(lightGridIcon);
|
|
|
+ grid.setBorderPainted(true);
|
|
|
+ list.setBorderPainted(false);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
grid.setSelected(false);
|
|
|
list.setSelected(true);
|
|
|
model.switchLayout(false);
|
|
|
- list.setIcon(lightListIcon);
|
|
|
+ //list.setIcon(lightListIcon);
|
|
|
+ list.setBorderPainted(true);
|
|
|
+ grid.setBorderPainted(false);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -285,7 +289,7 @@ public class Controls extends JPanel implements Observer, Serializable
|
|
|
this.grid = new JRadioButton(gridIcon, true);
|
|
|
grid.addActionListener(customlistener);
|
|
|
|
|
|
- this.list = new JRadioButton(lightListIcon, false);
|
|
|
+ this.list = new JRadioButton(listIcon, false);
|
|
|
list.addActionListener(customlistener);
|
|
|
|
|
|
this.layouts = new ButtonGroup();
|