Revision 45154 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretype/DefaultFeatureTypePanelView.java

View differences:

DefaultFeatureTypePanelView.java
8 8
import java.awt.ComponentOrientation;
9 9
import java.awt.Container;
10 10
import java.awt.Dimension;
11
import java.awt.event.WindowAdapter;
12
import java.awt.event.WindowEvent;
13 11
import javax.swing.Box;
14 12
import javax.swing.ImageIcon;
15 13
import javax.swing.JButton;
......
60 58
   }
61 59

  
62 60
   /**
63
    * Main method for panel
64
    */
65
   public static void main(String[] args)
66
   {
67
      JFrame frame = new JFrame();
68
      frame.setSize(600, 400);
69
      frame.setLocation(100, 100);
70
      frame.getContentPane().add(new DefaultFeatureTypePanelView());
71
      frame.setVisible(true);
72

  
73
      frame.addWindowListener( new WindowAdapter()
74
      {
75
         public void windowClosing( WindowEvent evt )
76
         {
77
            System.exit(0);
78
         }
79
      });
80
   }
81

  
82
   /**
83 61
    * Adds fill components to empty cells in the first row and first column of the grid.
84 62
    * This ensures that the grid spacing will be the same as shown in the designer.
85 63
    * @param cols an array of column indices in the first row where fill components should be added.
......
178 156
   public JPanel createPanel1()
179 157
   {
180 158
      JPanel jpanel1 = new JPanel();
181
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE");
159
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(0.2),CENTER:2DLU:NONE");
182 160
      CellConstraints cc = new CellConstraints();
183 161
      jpanel1.setLayout(formlayout1);
184 162

  

Also available in: Unified diff