Revision 44502 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/gui/projectpanel/ProjectDocumentsPanelPageView.java

View differences:

ProjectDocumentsPanelPageView.java
9 9
import java.awt.ComponentOrientation;
10 10
import java.awt.Container;
11 11
import java.awt.Dimension;
12
import java.awt.event.WindowAdapter;
13
import java.awt.event.WindowEvent;
12 14
import javax.swing.Box;
13 15
import javax.swing.ImageIcon;
14 16
import javax.swing.JButton;
......
49 51
   }
50 52

  
51 53
   /**
54
    * Main method for panel
55
    */
56
   public static void main(String[] args)
57
   {
58
      JFrame frame = new JFrame();
59
      frame.setSize(600, 400);
60
      frame.setLocation(100, 100);
61
      frame.getContentPane().add(new ProjectDocumentsPanelPageView());
62
      frame.setVisible(true);
63

  
64
      frame.addWindowListener( new WindowAdapter()
65
      {
66
         public void windowClosing( WindowEvent evt )
67
         {
68
            System.exit(0);
69
         }
70
      });
71
   }
72

  
73
   /**
52 74
    * Adds fill components to empty cells in the first row and first column of the grid.
53 75
    * This ensures that the grid spacing will be the same as shown in the designer.
54 76
    * @param cols an array of column indices in the first row where fill components should be added.
......
130 152
   public JPanel createPanel()
131 153
   {
132 154
      JPanel jpanel1 = new JPanel();
133
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
155
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:115PX:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
134 156
      CellConstraints cc = new CellConstraints();
135 157
      jpanel1.setLayout(formlayout1);
136 158

  

Also available in: Unified diff