Revision 44471 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/FeatureTypePanelView.java

View differences:

FeatureTypePanelView.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;
11 13
import javax.swing.Box;
12 14
import javax.swing.ImageIcon;
13 15
import javax.swing.JButton;
......
57 59
   }
58 60

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

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

  
81
   /**
60 82
    * Adds fill components to empty cells in the first row and first column of the grid.
61 83
    * This ensures that the grid spacing will be the same as shown in the designer.
62 84
    * @param cols an array of column indices in the first row where fill components should be added.
......
154 176
   public JPanel createPanel1()
155 177
   {
156 178
      JPanel jpanel1 = new JPanel();
157
      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,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
179
      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");
158 180
      CellConstraints cc = new CellConstraints();
159 181
      jpanel1.setLayout(formlayout1);
160 182

  

Also available in: Unified diff