Revision 44085 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
24 24
   JPanel pnlField = new JPanel();
25 25
   JButton btnNew = new JButton();
26 26
   JButton btnDelete = new JButton();
27
   JButton btnRename = new JButton();
28
   JButton btnAccept = new JButton();
29
   JButton btnDiscard = new JButton();
27
   JButton btnFormFieldAccept = new JButton();
28
   JButton btnFormFieldDiscard = new JButton();
30 29

  
31 30
   /**
32 31
    * Default constructor
......
143 142
   public JPanel createPanel1()
144 143
   {
145 144
      JPanel jpanel1 = new JPanel();
146
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)");
145
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0)");
147 146
      CellConstraints cc = new CellConstraints();
148 147
      jpanel1.setLayout(formlayout1);
149 148

  
......
157 156
      btnDelete.setText("_Delete");
158 157
      jpanel1.add(btnDelete,cc.xy(2,3));
159 158

  
160
      btnRename.setActionCommand("_Rename");
161
      btnRename.setName("btnRename");
162
      btnRename.setText("_Rename");
163
      jpanel1.add(btnRename,cc.xy(2,5));
164

  
165
      addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1,2,3,4,5,6 });
159
      addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1,2,3,4,5 });
166 160
      return jpanel1;
167 161
   }
168 162

  
......
173 167
      CellConstraints cc = new CellConstraints();
174 168
      jpanel1.setLayout(formlayout1);
175 169

  
176
      btnAccept.setActionCommand("JButton");
177
      btnAccept.setName("btnAccept");
178
      btnAccept.setText("_Accept");
179
      jpanel1.add(btnAccept,cc.xy(2,1));
170
      btnFormFieldAccept.setActionCommand("JButton");
171
      btnFormFieldAccept.setName("btnFormFieldAccept");
172
      btnFormFieldAccept.setText("_Accept");
173
      jpanel1.add(btnFormFieldAccept,cc.xy(2,1));
180 174

  
181
      btnDiscard.setActionCommand("JButton");
182
      btnDiscard.setName("btnDiscard");
183
      btnDiscard.setText("_Discard");
184
      jpanel1.add(btnDiscard,cc.xy(2,3));
175
      btnFormFieldDiscard.setActionCommand("JButton");
176
      btnFormFieldDiscard.setName("btnFormFieldDiscard");
177
      btnFormFieldDiscard.setText("_Discard");
178
      jpanel1.add(btnFormFieldDiscard,cc.xy(2,3));
185 179

  
186 180
      addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1,2,3,4 });
187 181
      return jpanel1;

Also available in: Unified diff