Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5511
Modified Files:
GLColorMenuActionListener.java
Log Message:
made color of construction lines customizable
Index: GLColorMenuActionListener.java
===================================================================
RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/GLColorMenuActionListener.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** GLColorMenuActionListener.java 3 Dec 2005 12:27:21 -0000 1.3
--- GLColorMenuActionListener.java 6 Dec 2005 16:55:25 -0000 1.4
***************
*** 53,66 ****
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand().equals("Grid Color")) {
! Color newColor = JColorChooser.showDialog(GUI.getInstance(), "Grid Color", Color.white);
view.setGridColor(newColor.getRGBComponents(null));
} else if (e.getActionCommand().equals("Line Color")) {
! Color newColor = JColorChooser.showDialog(GUI.getInstance(), "Line Color", Color.white);
view.setLineColor(newColor.getRGBComponents(null));
} else if (e.getActionCommand().equals("Background Color")) {
! Color newColor = JColorChooser.showDialog(GUI.getInstance(), "Background Color", Color.white);
view.setBGColor(newColor.getRGBComponents(null));
} else if (e.getActionCommand().equals("None Color")) {
! Color newColor = JColorChooser.showDialog(GUI.getInstance(), "None Color", Color.white);
view.setNoneColor(newColor.getRGBComponents(null));
} else if (e.getActionCommand().equals("Default")) {
--- 53,79 ----
public void actionPerformed(ActionEvent e) {
if (e.getActionCommand().equals("Grid Color")) {
! Color newColor = JColorChooser.showDialog(GUI.getInstance(),
! "Grid Color",
! Color.white);
view.setGridColor(newColor.getRGBComponents(null));
} else if (e.getActionCommand().equals("Line Color")) {
! Color newColor = JColorChooser.showDialog(GUI.getInstance(),
! "Line Color",
! Color.white);
view.setLineColor(newColor.getRGBComponents(null));
+ } else if (e.getActionCommand().equals("Constructor Line Color")) {
+ Color newColor = JColorChooser.showDialog(GUI.getInstance(),
+ "Constructor Line Color",
+ Color.white);
+ view.setConstructorColor(newColor.getRGBComponents(null));
} else if (e.getActionCommand().equals("Background Color")) {
! Color newColor = JColorChooser.showDialog(GUI.getInstance(),
! "Background Color",
! Color.white);
view.setBGColor(newColor.getRGBComponents(null));
} else if (e.getActionCommand().equals("None Color")) {
! Color newColor = JColorChooser.showDialog(GUI.getInstance(),
! "None Color",
! Color.white);
view.setNoneColor(newColor.getRGBComponents(null));
} else if (e.getActionCommand().equals("Default")) {
|