|
@@ -65,7 +65,7 @@ class Colours extends JPanel
|
|
|
colours.add(new colourButton(Color.cyan));
|
|
|
//colours.add(new colourButton(Color.gray));
|
|
|
|
|
|
- this.changeButton = new JButton();
|
|
|
+ this.changeButton = new JButton("Choose Custom Colour");
|
|
|
changeButton.addActionListener(new ActionListener()
|
|
|
{
|
|
|
public void actionPerformed(ActionEvent e)
|
|
@@ -91,15 +91,6 @@ class Colours extends JPanel
|
|
|
chooserPanel.add(confirmButton);
|
|
|
this.add(changeButton);
|
|
|
|
|
|
- // create jbutton
|
|
|
-// make a new frame
|
|
|
-// add action listener to button to pack and set frame visible
|
|
|
-// create colour chooser
|
|
|
-// create jbutton for confirm dialog
|
|
|
-// add action listener for it to change model colour
|
|
|
-// make new panel using flow
|
|
|
-// add panel to frame
|
|
|
-// add chooser and confirm button to panel
|
|
|
for(colourButton b: colours)
|
|
|
{
|
|
|
this.add(b);
|