+ if(schemeName.getText().trim().length()<1)\r
+ {\r
+ JOptionPane.showInternalMessageDialog(Desktop.desktop,\r
+ "User colour scheme must have a name!",\r
+ "No name for colour scheme",\r
+ JOptionPane.WARNING_MESSAGE);\r
+ return;\r
+ }\r
+\r
+ if(userColourSchemes!=null && userColourSchemes.containsKey(schemeName.getText()) )\r
+ {\r
+ int reply = JOptionPane.showInternalConfirmDialog(Desktop.desktop, "Colour scheme "+schemeName.getText()+ " exists."\r
+ +"\nContinue saving colour scheme as "+schemeName.getText()+"?",\r
+ "Duplicate scheme name", JOptionPane.YES_NO_OPTION);\r
+ if(reply != JOptionPane.YES_OPTION)\r
+ return;\r
+\r
+ userColourSchemes.remove(schemeName.getText());\r
+ }\r