Author: kono
Date: 2010-10-04 16:58:43 -0700 (Mon, 04 Oct 2010)
New Revision: 22143

Modified:
   
cytoscape/trunk/application/src/main/java/cytoscape/visual/ui/editors/continuous/MinMaxDialog.java
Log:
Fixed too small text field problem in Ubuntu (Nimbus).

Modified: 
cytoscape/trunk/application/src/main/java/cytoscape/visual/ui/editors/continuous/MinMaxDialog.java
===================================================================
--- 
cytoscape/trunk/application/src/main/java/cytoscape/visual/ui/editors/continuous/MinMaxDialog.java
  2010-10-04 23:19:43 UTC (rev 22142)
+++ 
cytoscape/trunk/application/src/main/java/cytoscape/visual/ui/editors/continuous/MinMaxDialog.java
  2010-10-04 23:58:43 UTC (rev 22143)
@@ -34,6 +34,8 @@
 */
 package cytoscape.visual.ui.editors.continuous;
 
+import java.awt.Dimension;
+import java.awt.Font;
 import java.awt.Frame;
 import java.awt.event.ActionEvent;
 
@@ -52,6 +54,8 @@
  */
 public class MinMaxDialog extends javax.swing.JDialog {
        
+       private static final Font TEXTBOX_FONT = new java.awt.Font("SansSerif", 
1, 10);
+       
        private static final long serialVersionUID = 7350824820761046009L;
        
        private static MinMaxDialog dialog;
@@ -111,7 +115,11 @@
                minLabel = new javax.swing.JLabel();
                maxLabel = new javax.swing.JLabel();
                minTextField = new javax.swing.JTextField();
+               minTextField.setFont(TEXTBOX_FONT);
+               
                maxTextField = new javax.swing.JTextField();
+               maxTextField.setFont(TEXTBOX_FONT);
+               
                okButton = new javax.swing.JButton();
                cancelButton = new javax.swing.JButton();
                titlePanel = new javax.swing.JPanel();
@@ -217,14 +225,14 @@
                                                                    
.add(minLabel)
                                                                    
.add(minTextField,
                                                                         
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-                                                                        18,
+                                                                        30,
                                                                         
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                                         
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                                         
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                                                    
.add(maxLabel)
                                                                    
.add(maxTextField,
                                                                         
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
-                                                                        18,
+                                                                        30,
                                                                         
org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                                         
.addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                                         
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)

-- 
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.

Reply via email to