|
@@ -29,8 +29,14 @@ public class Controls extends JPanel implements Observer
|
|
|
this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
|
|
|
this.setPreferredSize(new Dimension(1280,75));
|
|
|
this.setMinimumSize(new Dimension(320, 75));
|
|
|
+ this.starImg = ImageIO.read(new File("star.png"));
|
|
|
+ this.gridImg = ImageIO.read(new File("grid.png"));
|
|
|
+ this.listImg = ImageIO.read(new File("list.png"));
|
|
|
+ this.starIcon = new ImageIcon(starImg);
|
|
|
+ this.gridIcon = new ImageIcon(gridImg);
|
|
|
+ this.listIcon = new ImageIcon(listImg);
|
|
|
|
|
|
- this.grid = new JButton("Grid");
|
|
|
+ this.grid = new JButton(gridIcon);
|
|
|
grid.addActionListener(new ActionListener()
|
|
|
{
|
|
|
public void actionPerformed(ActionEvent e)
|
|
@@ -39,7 +45,7 @@ public class Controls extends JPanel implements Observer
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- this.list = new JButton("List");
|
|
|
+ this.list = new JButton(listIcon);
|
|
|
list.addActionListener(new ActionListener()
|
|
|
{
|
|
|
public void actionPerformed(ActionEvent e)
|