Author: mmichaud
Date: 2009-04-03 05:03:00 -0700 (Fri, 03 Apr 2009)
New Revision: 16455
Modified:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/DoubleHandler.java
Log:
Modified:
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/DoubleHandler.java
===================================================================
---
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/DoubleHandler.java
2009-04-03 10:52:51 UTC (rev 16454)
+++
core3/work-swing-impl/trunk/src/main/java/org/cytoscape/work/internal/tunables/DoubleHandler.java
2009-04-03 12:03:00 UTC (rev 16455)
@@ -12,10 +12,10 @@
public class DoubleHandler extends AbstractGuiHandler {
- private JTextField jtf;
- private Double value = null;
+ JTextField jtf;
+ Double value = null;
Double myDouble;
- private String newline = System.getProperty("line.separator");
+ String newline = System.getProperty("line.separator");
protected DoubleHandler(Field f, Object o, Tunable t) {
@@ -29,8 +29,14 @@
label.setFont(new Font(null, Font.PLAIN,12));
jtf.setHorizontalAlignment(JTextField.RIGHT);
- panel.add(label,BorderLayout.WEST);
- panel.add(jtf,BorderLayout.EAST);
+ for(Param par : t.alignment())if(par==Param.horizontal){
+ panel.add(label,BorderLayout.NORTH);
+ panel.add(jtf,BorderLayout.SOUTH);
+ }
+ else {
+ panel.add(label,BorderLayout.WEST);
+ panel.add(jtf,BorderLayout.EAST);
+ }
}
public void handle() {
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en
-~----------~----~----~----~------~----~------~--~---