[MOBY-guts] biomoby commit
Eddie Kawas
kawas at pub.open-bio.org
Wed Nov 17 17:11:39 UTC 2004
kawas
Wed Nov 17 12:11:38 EST 2004
Update of /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool
In directory pub.open-bio.org:/tmp/cvs-serv9409/org/biomoby/client/gui/objectCreationTool
Modified Files:
ButtonActions.java PanelFactory.java FieldFocusListeners.java
ObjectCreationTool.java
Log Message:
changed some colors, etc. This is my last change to this tool before I overhaul the gui.
Eddie
moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool ButtonActions.java,1.1,1.2 PanelFactory.java,1.1,1.2 FieldFocusListeners.java,1.1,1.2 ObjectCreationTool.java,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/ButtonActions.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/ButtonActions.java 2004/09/27 22:15:13 1.1
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/ButtonActions.java 2004/11/17 17:11:38 1.2
@@ -290,7 +290,7 @@
name = tool.getSelectedNode();
str =
JOptionPane.showInputDialog(
- null,
+ tool,
"what is " + name + "'s Article Name?",
"Article Name",
JOptionPane.INFORMATION_MESSAGE);
@@ -304,7 +304,7 @@
name = tool.getSelectedNode();
str =
JOptionPane.showInputDialog(
- null,
+ tool,
"what is " + name + "'s Article Name?",
"Article Name",
JOptionPane.INFORMATION_MESSAGE);
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/PanelFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/PanelFactory.java 2004/09/27 22:15:13 1.1
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/PanelFactory.java 2004/11/17 17:11:38 1.2
@@ -43,7 +43,7 @@
private TreePath path;
private JPanel addPanel;
private int INIT = 0;
- private static final Color panelColor = new Color(159, 180, 55);
+ private static final Color panelColor = new Color(182, 221, 141);
private String image_path = "";
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/FieldFocusListeners.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/FieldFocusListeners.java 2004/09/27 22:15:13 1.1
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/FieldFocusListeners.java 2004/11/17 17:11:38 1.2
@@ -62,7 +62,7 @@
}
}
if (!set)
- if (uriFocusCount++ % 1 == 0) // ensure that the window doesnt appear twice
+ if ((uriFocusCount+=2) % 2 == 0) // ensure that the window doesnt appear twice
{
JOptionPane.showMessageDialog(
tool,
@@ -76,7 +76,7 @@
} else if (command.equals("email")) {
String str = tool.getPanelFactory().getEmailField().getText();
boolean set = REGEXP.isValidEmailAddress(str);
- if (!set && emailFocusCount++ % 1 == 0) // ensure that the window doesnt appear twice
+ if (!set && (emailFocusCount+=2) % 2 == 0) // ensure that the window doesnt appear twice
JOptionPane.showMessageDialog(tool, "Email address in invalid.", "Error", JOptionPane.ERROR_MESSAGE);
else
tool.getMobyxml().getRegistration().setEmailContact(str);
@@ -89,7 +89,7 @@
boolean set = false;
try {
if (!tool.getMobyxml().renameRoot(str))
- if (nameFocusCount++ % 1 == 0) {
+ if ((nameFocusCount+=2) % 2 == 0) {
JOptionPane.showMessageDialog(tool, "Name is in invalid.", "Error", JOptionPane.ERROR_MESSAGE);
}
} catch (Exception ex) {
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/ObjectCreationTool.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/ObjectCreationTool.java 2004/09/27 22:15:13 1.1
+++ /home/repository/moby/moby-live/Java/src/main/org/biomoby/client/gui/objectCreationTool/ObjectCreationTool.java 2004/11/17 17:11:38 1.2
@@ -4,6 +4,7 @@
*/
package org.biomoby.client.gui.objectCreationTool;
import java.awt.BorderLayout;
+import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
@@ -18,7 +19,6 @@
import javax.swing.JTabbedPane;
import javax.swing.UIManager;
import javax.swing.tree.TreePath;
-
import org.biomoby.client.gui.util.TreeLoaderThread;
/**
@@ -77,7 +77,8 @@
// set up the layout
getContentPane().setLayout(new BorderLayout());
getContentPane().add(pane, BorderLayout.CENTER); // used a tabbedpane so that i could swap panels
- pane.setOpaque(false);
+ pane.setOpaque(true);
+ pane.setBackground(new Color(182,221,141));
fieldListeners = new FieldFocusListeners(this);
fieldKeyListeners = new FieldKeyListener(this);
More information about the MOBY-guts
mailing list