Statistics
| Revision:

gvsig-projects-pool / org.gvsig.vcsgis / trunk / org.gvsig.vcsgis / org.gvsig.vcsgis.swing / org.gvsig.vcsgis.swing.impl / src / main / java / org / gvsig / vcsgis / swing / impl / checkout / VCSGisJCheckoutView.java @ 9120

History | View | Annotate | Download (19.5 KB)

1
package org.gvsig.vcsgis.swing.impl.checkout;
2

    
3
import com.jeta.open.i18n.I18NUtils;
4
import com.jgoodies.forms.layout.CellConstraints;
5
import com.jgoodies.forms.layout.FormLayout;
6
import java.awt.BorderLayout;
7
import java.awt.ComponentOrientation;
8
import java.awt.Container;
9
import java.awt.Dimension;
10
import javax.swing.Box;
11
import javax.swing.ButtonGroup;
12
import javax.swing.ImageIcon;
13
import javax.swing.JButton;
14
import javax.swing.JCheckBox;
15
import javax.swing.JComboBox;
16
import javax.swing.JFrame;
17
import javax.swing.JLabel;
18
import javax.swing.JPanel;
19
import javax.swing.JProgressBar;
20
import javax.swing.JRadioButton;
21
import javax.swing.JScrollPane;
22
import javax.swing.JTabbedPane;
23
import javax.swing.JTextField;
24
import javax.swing.JToggleButton;
25
import javax.swing.JTree;
26
import javax.swing.border.EmptyBorder;
27

    
28

    
29
public class VCSGisJCheckoutView extends JPanel
30
{
31
   JLabel lblWorkspace = new JLabel();
32
   JComboBox cboWorkspaces = new JComboBox();
33
   JButton btnInitWorkspace = new JButton();
34
   JLabel lblStatusTitle = new JLabel();
35
   JProgressBar pbStatus = new JProgressBar();
36
   JLabel lblStatusMessages = new JLabel();
37
   JButton btnStatusCancel = new JButton();
38
   JTabbedPane tabCheckout = new JTabbedPane();
39
   JTextField txtFilter = new JTextField();
40
   JButton btnTable = new JButton();
41
   JTree treeTables = new JTree();
42
   JRadioButton rdbDontAddToProject = new JRadioButton();
43
   ButtonGroup buttongroup2 = new ButtonGroup();
44
   JRadioButton rdbAddLayerToView = new JRadioButton();
45
   JRadioButton rdbAddTableToProject = new JRadioButton();
46
   JCheckBox chkOverwriteTable = new JCheckBox();
47
   JButton btnCheckAll = new JButton();
48
   JButton btnUnCheckAll = new JButton();
49
   JButton btnTablesCollapseAll = new JButton();
50
   JButton btnTablesSelectStoresInUse = new JButton();
51
   JButton btnTablesExpandAll = new JButton();
52
   JComboBox cboView = new JComboBox();
53
   JCheckBox chkReplaceLayerIfExists = new JCheckBox();
54
   JCheckBox chkUseLabelInsteadName = new JCheckBox();
55
   JRadioButton rdbEffectiveDate = new JRadioButton();
56
   ButtonGroup buttongroup1 = new ButtonGroup();
57
   JRadioButton rdbRevision = new JRadioButton();
58
   JRadioButton rdblastRevision = new JRadioButton();
59
   JTextField txtEffectiveDate = new JTextField();
60
   JButton btnEffectiveDate = new JButton();
61
   JTextField txtRevision = new JTextField();
62
   JButton btnRevision = new JButton();
63
   JCheckBox chkCheckoutOnlyOneArea = new JCheckBox();
64
   JTextField txtExtent = new JTextField();
65
   JButton btnExtentFromView = new JButton();
66
   JToggleButton btnExtentCapture = new JToggleButton();
67

    
68
   /**
69
    * Default constructor
70
    */
71
   public VCSGisJCheckoutView()
72
   {
73
      initializePanel();
74
   }
75

    
76
   /**
77
    * Adds fill components to empty cells in the first row and first column of the grid.
78
    * This ensures that the grid spacing will be the same as shown in the designer.
79
    * @param cols an array of column indices in the first row where fill components should be added.
80
    * @param rows an array of row indices in the first column where fill components should be added.
81
    */
82
   void addFillComponents( Container panel, int[] cols, int[] rows )
83
   {
84
      Dimension filler = new Dimension(10,10);
85

    
86
      boolean filled_cell_11 = false;
87
      CellConstraints cc = new CellConstraints();
88
      if ( cols.length > 0 && rows.length > 0 )
89
      {
90
         if ( cols[0] == 1 && rows[0] == 1 )
91
         {
92
            /** add a rigid area  */
93
            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
94
            filled_cell_11 = true;
95
         }
96
      }
97

    
98
      for( int index = 0; index < cols.length; index++ )
99
      {
100
         if ( cols[index] == 1 && filled_cell_11 )
101
         {
102
            continue;
103
         }
104
         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
105
      }
106

    
107
      for( int index = 0; index < rows.length; index++ )
108
      {
109
         if ( rows[index] == 1 && filled_cell_11 )
110
         {
111
            continue;
112
         }
113
         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
114
      }
115

    
116
   }
117

    
118
   /**
119
    * Helper method to load an image file from the CLASSPATH
120
    * @param imageName the package and name of the file to load relative to the CLASSPATH
121
    * @return an ImageIcon instance with the specified image file
122
    * @throws IllegalArgumentException if the image resource cannot be loaded.
123
    */
124
   public ImageIcon loadImage( String imageName )
125
   {
126
      try
127
      {
128
         ClassLoader classloader = getClass().getClassLoader();
129
         java.net.URL url = classloader.getResource( imageName );
130
         if ( url != null )
131
         {
132
            ImageIcon icon = new ImageIcon( url );
133
            return icon;
134
         }
135
      }
136
      catch( Exception e )
137
      {
138
         e.printStackTrace();
139
      }
140
      throw new IllegalArgumentException( "Unable to load image: " + imageName );
141
   }
142

    
143
   /**
144
    * Method for recalculating the component orientation for 
145
    * right-to-left Locales.
146
    * @param orientation the component orientation to be applied
147
    */
148
   public void applyComponentOrientation( ComponentOrientation orientation )
149
   {
150
      // Not yet implemented...
151
      // I18NUtils.applyComponentOrientation(this, orientation);
152
      super.applyComponentOrientation(orientation);
153
   }
154

    
155
   public JPanel createPanel()
156
   {
157
      JPanel jpanel1 = new JPanel();
158
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:MIN(2DLU;DEFAULT):NONE");
159
      CellConstraints cc = new CellConstraints();
160
      jpanel1.setLayout(formlayout1);
161

    
162
      lblWorkspace.setName("lblWorkspace");
163
      lblWorkspace.setText("_Workingcopy");
164
      jpanel1.add(lblWorkspace,cc.xy(2,2));
165

    
166
      cboWorkspaces.setName("cboWorkspaces");
167
      jpanel1.add(cboWorkspaces,cc.xy(4,2));
168

    
169
      btnInitWorkspace.setActionCommand("...");
170
      btnInitWorkspace.setName("btnInitWorkspace");
171
      btnInitWorkspace.setOpaque(false);
172
      btnInitWorkspace.setText("...");
173
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
174
      btnInitWorkspace.setBorder(emptyborder1);
175
      jpanel1.add(btnInitWorkspace,cc.xy(6,2));
176

    
177
      jpanel1.add(createPanel1(),cc.xywh(2,6,5,1));
178
      tabCheckout.setName("tabCheckout");
179
      tabCheckout.addTab("Tablas",null,createPanel2());
180
      tabCheckout.addTab("Opciones",null,createPanel5());
181
      jpanel1.add(tabCheckout,cc.xywh(2,4,5,1));
182

    
183
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7 });
184
      return jpanel1;
185
   }
186

    
187
   public JPanel createPanel1()
188
   {
189
      JPanel jpanel1 = new JPanel();
190
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:MAX(12DLU;DEFAULT):NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
191
      CellConstraints cc = new CellConstraints();
192
      jpanel1.setLayout(formlayout1);
193

    
194
      lblStatusTitle.setName("lblStatusTitle");
195
      jpanel1.add(lblStatusTitle,cc.xy(1,1));
196

    
197
      pbStatus.setName("pbStatus");
198
      pbStatus.setValue(25);
199
      jpanel1.add(pbStatus,cc.xy(1,2));
200

    
201
      lblStatusMessages.setName("lblStatusMessages");
202
      jpanel1.add(lblStatusMessages,cc.xy(1,3));
203

    
204
      btnStatusCancel.setActionCommand("...");
205
      btnStatusCancel.setName("btnStatusCancel");
206
      btnStatusCancel.setOpaque(false);
207
      btnStatusCancel.setText("...");
208
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
209
      btnStatusCancel.setBorder(emptyborder1);
210
      jpanel1.add(btnStatusCancel,cc.xy(2,2));
211

    
212
      addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
213
      return jpanel1;
214
   }
215

    
216
   public JPanel createPanel2()
217
   {
218
      JPanel jpanel1 = new JPanel();
219
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU: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,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
220
      CellConstraints cc = new CellConstraints();
221
      jpanel1.setLayout(formlayout1);
222

    
223
      txtFilter.setName("txtFilter");
224
      jpanel1.add(txtFilter,cc.xy(2,2));
225

    
226
      btnTable.setActionCommand("...");
227
      btnTable.setName("btnTable");
228
      btnTable.setOpaque(false);
229
      btnTable.setText("...");
230
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
231
      btnTable.setBorder(emptyborder1);
232
      jpanel1.add(btnTable,cc.xy(4,2));
233

    
234
      treeTables.setName("treeTables");
235
      treeTables.setRootVisible(false);
236
      treeTables.setShowsRootHandles(true);
237
      JScrollPane jscrollpane1 = new JScrollPane();
238
      jscrollpane1.setViewportView(treeTables);
239
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
240
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
241
      jpanel1.add(jscrollpane1,cc.xywh(2,4,3,1));
242

    
243
      rdbDontAddToProject.setActionCommand("_Dont_add_the_table_or_layer_to_the_project");
244
      rdbDontAddToProject.setName("rdbDontAddToProject");
245
      rdbDontAddToProject.setText("_Dont_add_the_tables_or_layers_to_the_project");
246
      buttongroup2.add(rdbDontAddToProject);
247
      jpanel1.add(rdbDontAddToProject,cc.xy(2,8));
248

    
249
      rdbAddLayerToView.setActionCommand("_Add_layer_to_view");
250
      rdbAddLayerToView.setName("rdbAddLayerToView");
251
      rdbAddLayerToView.setText("_Add_layers_to_view");
252
      buttongroup2.add(rdbAddLayerToView);
253
      jpanel1.add(rdbAddLayerToView,cc.xy(2,10));
254

    
255
      rdbAddTableToProject.setActionCommand("_Add_table_to_project");
256
      rdbAddTableToProject.setName("rdbAddTableToProject");
257
      rdbAddTableToProject.setText("_Add_tables_to_project");
258
      buttongroup2.add(rdbAddTableToProject);
259
      jpanel1.add(rdbAddTableToProject,cc.xy(2,14));
260

    
261
      jpanel1.add(createPanel3(),cc.xywh(2,6,3,1));
262
      jpanel1.add(createPanel4(),cc.xywh(2,12,3,1));
263
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14 });
264
      return jpanel1;
265
   }
266

    
267
   public JPanel createPanel3()
268
   {
269
      JPanel jpanel1 = new JPanel();
270
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
271
      CellConstraints cc = new CellConstraints();
272
      jpanel1.setLayout(formlayout1);
273

    
274
      chkOverwriteTable.setActionCommand("_Overwrite_table");
275
      chkOverwriteTable.setEnabled(false);
276
      chkOverwriteTable.setName("chkOverwriteTable");
277
      chkOverwriteTable.setText("_Overwrite_table");
278
      chkOverwriteTable.setToolTipText("_Delete_existing_table_in_workingcopy_and_checkout_table_from_repository");
279
      jpanel1.add(chkOverwriteTable,cc.xy(7,1));
280

    
281
      btnCheckAll.setActionCommand("...");
282
      btnCheckAll.setEnabled(false);
283
      btnCheckAll.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/common-check-on.png"));
284
      btnCheckAll.setName("btnCheckAll");
285
      btnCheckAll.setOpaque(false);
286
      btnCheckAll.setRolloverEnabled(true);
287
      btnCheckAll.setToolTipText("_Select_all");
288
      EmptyBorder emptyborder1 = new EmptyBorder(1,1,1,1);
289
      btnCheckAll.setBorder(emptyborder1);
290
      jpanel1.add(btnCheckAll,cc.xy(1,1));
291

    
292
      btnUnCheckAll.setActionCommand("...");
293
      btnUnCheckAll.setEnabled(false);
294
      btnUnCheckAll.setIcon(loadImage("src/main/resources/org/gvsig/vcsgis/swing/impl/images/common-check-off.png"));
295
      btnUnCheckAll.setName("btnUnCheckAll");
296
      btnUnCheckAll.setOpaque(false);
297
      btnUnCheckAll.setRolloverEnabled(true);
298
      btnUnCheckAll.setToolTipText("_Unselect_all");
299
      EmptyBorder emptyborder2 = new EmptyBorder(1,1,1,1);
300
      btnUnCheckAll.setBorder(emptyborder2);
301
      jpanel1.add(btnUnCheckAll,cc.xy(2,1));
302

    
303
      btnTablesCollapseAll.setActionCommand("...");
304
      btnTablesCollapseAll.setIcon(loadImage("addons/SQLWorkbenchJ/common-collapse-all.png"));
305
      btnTablesCollapseAll.setName("btnTablesCollapseAll");
306
      btnTablesCollapseAll.setOpaque(false);
307
      btnTablesCollapseAll.setRolloverEnabled(true);
308
      btnTablesCollapseAll.setToolTipText("_Collapse_all");
309
      EmptyBorder emptyborder3 = new EmptyBorder(1,1,1,1);
310
      btnTablesCollapseAll.setBorder(emptyborder3);
311
      jpanel1.add(btnTablesCollapseAll,cc.xy(3,1));
312

    
313
      btnTablesSelectStoresInUse.setActionCommand("...");
314
      btnTablesSelectStoresInUse.setIcon(loadImage("datos/devel/org.gvsig.vcsgis/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.impl/src/main/resources/org/gvsig/vcsgis/swing/impl/images/vcsgis-checkout-select-stores.png"));
315
      btnTablesSelectStoresInUse.setName("btnTablesSelectStoresInUse");
316
      btnTablesSelectStoresInUse.setOpaque(false);
317
      btnTablesSelectStoresInUse.setRolloverEnabled(true);
318
      btnTablesSelectStoresInUse.setToolTipText("_Select_entities_in_use");
319
      EmptyBorder emptyborder4 = new EmptyBorder(1,1,1,1);
320
      btnTablesSelectStoresInUse.setBorder(emptyborder4);
321
      jpanel1.add(btnTablesSelectStoresInUse,cc.xy(5,1));
322

    
323
      btnTablesExpandAll.setActionCommand("...");
324
      btnTablesExpandAll.setIcon(loadImage("addons/SQLWorkbenchJ/common-expand-all.png"));
325
      btnTablesExpandAll.setName("btnTablesExpandAll");
326
      btnTablesExpandAll.setOpaque(false);
327
      btnTablesExpandAll.setRolloverEnabled(true);
328
      btnTablesExpandAll.setToolTipText("_Expand_all");
329
      EmptyBorder emptyborder5 = new EmptyBorder(1,1,1,1);
330
      btnTablesExpandAll.setBorder(emptyborder5);
331
      jpanel1.add(btnTablesExpandAll,cc.xy(4,1));
332

    
333
      addFillComponents(jpanel1,new int[]{ 6 },new int[0]);
334
      return jpanel1;
335
   }
336

    
337
   public JPanel createPanel4()
338
   {
339
      JPanel jpanel1 = new JPanel();
340
      FormLayout formlayout1 = new FormLayout("FILL:8DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
341
      CellConstraints cc = new CellConstraints();
342
      jpanel1.setLayout(formlayout1);
343

    
344
      cboView.setName("cboView");
345
      jpanel1.add(cboView,cc.xywh(2,1,4,1));
346

    
347
      chkReplaceLayerIfExists.setActionCommand("_Replace_layer_if_exists");
348
      chkReplaceLayerIfExists.setName("chkReplaceLayerIfExists");
349
      chkReplaceLayerIfExists.setText("_Replace_layers_if_exists");
350
      jpanel1.add(chkReplaceLayerIfExists,cc.xy(2,3));
351

    
352
      chkUseLabelInsteadName.setActionCommand("_Use_label_instead_of_name");
353
      chkUseLabelInsteadName.setName("chkUseLabelInsteadName");
354
      chkUseLabelInsteadName.setText("_Use_label_instead_of_name");
355
      jpanel1.add(chkUseLabelInsteadName,cc.xy(4,3));
356

    
357
      addFillComponents(jpanel1,new int[]{ 1,3,4,5 },new int[]{ 1,2,3 });
358
      return jpanel1;
359
   }
360

    
361
   public JPanel createPanel5()
362
   {
363
      JPanel jpanel1 = new JPanel();
364
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:22PX:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
365
      CellConstraints cc = new CellConstraints();
366
      jpanel1.setLayout(formlayout1);
367

    
368
      rdbEffectiveDate.setActionCommand("_branch");
369
      rdbEffectiveDate.setName("rdbEffectiveDate");
370
      rdbEffectiveDate.setText("_Effective_date");
371
      buttongroup1.add(rdbEffectiveDate);
372
      jpanel1.add(rdbEffectiveDate,cc.xywh(2,4,2,1));
373

    
374
      rdbRevision.setActionCommand("_revision");
375
      rdbRevision.setName("rdbRevision");
376
      rdbRevision.setText("_Revision");
377
      buttongroup1.add(rdbRevision);
378
      jpanel1.add(rdbRevision,cc.xywh(2,12,2,1));
379

    
380
      rdblastRevision.setActionCommand("_branch");
381
      rdblastRevision.setName("rdblastRevision");
382
      rdblastRevision.setSelected(true);
383
      rdblastRevision.setText("_Last_revision");
384
      buttongroup1.add(rdblastRevision);
385
      jpanel1.add(rdblastRevision,cc.xywh(2,2,2,1));
386

    
387
      jpanel1.add(createPanel6(),cc.xywh(2,6,2,1));
388
      jpanel1.add(createPanel7(),cc.xywh(2,14,2,1));
389
      chkCheckoutOnlyOneArea.setActionCommand("_Export_only_extent_of_current_view");
390
      chkCheckoutOnlyOneArea.setName("chkCheckoutOnlyOneArea");
391
      chkCheckoutOnlyOneArea.setText("_Checkout_only_one_area");
392
      jpanel1.add(chkCheckoutOnlyOneArea,cc.xy(3,8));
393

    
394
      jpanel1.add(createPanel8(),cc.xy(3,10));
395
      addFillComponents(jpanel1,new int[]{ 1,2,3,4 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 });
396
      return jpanel1;
397
   }
398

    
399
   public JPanel createPanel6()
400
   {
401
      JPanel jpanel1 = new JPanel();
402
      FormLayout formlayout1 = new FormLayout("FILL:22PX:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
403
      CellConstraints cc = new CellConstraints();
404
      jpanel1.setLayout(formlayout1);
405

    
406
      txtEffectiveDate.setEnabled(false);
407
      txtEffectiveDate.setName("txtEffectiveDate");
408
      jpanel1.add(txtEffectiveDate,cc.xy(2,1));
409

    
410
      btnEffectiveDate.setActionCommand("...");
411
      btnEffectiveDate.setEnabled(false);
412
      btnEffectiveDate.setName("btnEffectiveDate");
413
      btnEffectiveDate.setOpaque(false);
414
      btnEffectiveDate.setText("...");
415
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
416
      btnEffectiveDate.setBorder(emptyborder1);
417
      jpanel1.add(btnEffectiveDate,cc.xy(4,1));
418

    
419
      addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1 });
420
      return jpanel1;
421
   }
422

    
423
   public JPanel createPanel7()
424
   {
425
      JPanel jpanel1 = new JPanel();
426
      FormLayout formlayout1 = new FormLayout("FILL:22PX:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
427
      CellConstraints cc = new CellConstraints();
428
      jpanel1.setLayout(formlayout1);
429

    
430
      txtRevision.setEnabled(false);
431
      txtRevision.setName("txtRevision");
432
      jpanel1.add(txtRevision,cc.xy(2,1));
433

    
434
      btnRevision.setActionCommand("...");
435
      btnRevision.setEnabled(false);
436
      btnRevision.setName("btnRevision");
437
      btnRevision.setOpaque(false);
438
      btnRevision.setText("...");
439
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
440
      btnRevision.setBorder(emptyborder1);
441
      jpanel1.add(btnRevision,cc.xy(4,1));
442

    
443
      addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1 });
444
      return jpanel1;
445
   }
446

    
447
   public JPanel createPanel8()
448
   {
449
      JPanel jpanel1 = new JPanel();
450
      FormLayout formlayout1 = new FormLayout("FILL:22PX:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
451
      CellConstraints cc = new CellConstraints();
452
      jpanel1.setLayout(formlayout1);
453

    
454
      txtExtent.setName("txtExtent");
455
      jpanel1.add(txtExtent,cc.xy(2,1));
456

    
457
      btnExtentFromView.setActionCommand("...");
458
      btnExtentFromView.setName("btnExtentFromView");
459
      btnExtentFromView.setOpaque(false);
460
      btnExtentFromView.setText("...");
461
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
462
      btnExtentFromView.setBorder(emptyborder1);
463
      jpanel1.add(btnExtentFromView,cc.xy(4,1));
464

    
465
      btnExtentCapture.setActionCommand("...");
466
      btnExtentCapture.setName("btnExtentCapture");
467
      btnExtentCapture.setText("...");
468
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
469
      btnExtentCapture.setBorder(emptyborder2);
470
      jpanel1.add(btnExtentCapture,cc.xy(6,1));
471

    
472
      addFillComponents(jpanel1,new int[]{ 1,3,5 },new int[]{ 1 });
473
      return jpanel1;
474
   }
475

    
476
   /**
477
    * Initializer
478
    */
479
   protected void initializePanel()
480
   {
481
      setLayout(new BorderLayout());
482
      add(createPanel(), BorderLayout.CENTER);
483
   }
484

    
485

    
486
}