Revision 9515 org.gvsig.online/trunk/org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/java/org/gvsig/online/swing/impl/initworkspace/OnlineJInitWorkingcopyView.java

View differences:

OnlineJInitWorkingcopyView.java
50 50
   JProgressBar pbStatus = new JProgressBar();
51 51
   JLabel lblStatusMessages = new JLabel();
52 52
   JButton btnStatusCancel = new JButton();
53
   JComboBox cboAuthentication = new JComboBox();
54
   JButton btnAuthentication = new JButton();
55
   JButton btnAuthenticationTest = new JButton();
53 56

  
54 57
   /**
55 58
    * Default constructor
......
141 144
   public JPanel createPanel()
142 145
   {
143 146
      JPanel jpanel1 = new JPanel();
144
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT: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,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
147
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT: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,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
145 148
      CellConstraints cc = new CellConstraints();
146 149
      jpanel1.setLayout(formlayout1);
147 150

  
......
151 154

  
152 155
      lblProjects.setName("lblProjects");
153 156
      lblProjects.setText("Proyecto");
154
      jpanel1.add(lblProjects,cc.xy(2,4));
157
      jpanel1.add(lblProjects,cc.xy(2,6));
155 158

  
156 159
      lblWorkspaceFile.setName("lblWorkspaceFile");
157 160
      lblWorkspaceFile.setText("Fichero local");
158
      jpanel1.add(lblWorkspaceFile,cc.xy(2,6));
161
      jpanel1.add(lblWorkspaceFile,cc.xy(2,8));
159 162

  
160 163
      lblWorkspaceName.setName("lblWorkspaceName");
161 164
      lblWorkspaceName.setText("Nombre");
162
      jpanel1.add(lblWorkspaceName,cc.xy(2,10));
165
      jpanel1.add(lblWorkspaceName,cc.xy(2,12));
163 166

  
164 167
      lblLayers.setName("lblLayers");
165 168
      lblLayers.setText("Capas");
166
      jpanel1.add(lblLayers,cc.xy(2,12));
169
      jpanel1.add(lblLayers,cc.xy(2,14));
167 170

  
168 171
      tblLayers.setName("tblLayers");
169 172
      JScrollPane jscrollpane1 = new JScrollPane();
170 173
      jscrollpane1.setViewportView(tblLayers);
171 174
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
172 175
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
173
      jpanel1.add(jscrollpane1,cc.xywh(2,14,3,1));
176
      jpanel1.add(jscrollpane1,cc.xywh(2,16,3,1));
174 177

  
175 178
      lblWorkingArea.setName("lblWorkingArea");
176 179
      lblWorkingArea.setText("_Working_area");
177
      jpanel1.add(lblWorkingArea,new CellConstraints(2,16,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
180
      jpanel1.add(lblWorkingArea,new CellConstraints(2,18,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
178 181

  
179 182
      cboProjects.setName("cboProjects");
180
      jpanel1.add(cboProjects,cc.xy(4,4));
183
      jpanel1.add(cboProjects,cc.xy(4,6));
181 184

  
182 185
      txtWorkspaceName.setName("txtWorkspaceName");
183 186
      txtWorkspaceName.setSelectionEnd(7);
184 187
      txtWorkspaceName.setSelectionStart(7);
185 188
      txtWorkspaceName.setText("Pruebas");
186
      jpanel1.add(txtWorkspaceName,cc.xy(4,10));
189
      jpanel1.add(txtWorkspaceName,cc.xy(4,12));
187 190

  
188 191
      chkCreateConnectionToDatabase.setActionCommand("_Create_conexion_to_database");
189 192
      chkCreateConnectionToDatabase.setName("chkCreateConnectionToDatabase");
190 193
      chkCreateConnectionToDatabase.setSelected(true);
191 194
      chkCreateConnectionToDatabase.setText("_Create_conexion_to_database");
192 195
      chkCreateConnectionToDatabase.setHorizontalAlignment(JCheckBox.LEFT);
193
      jpanel1.add(chkCreateConnectionToDatabase,cc.xy(4,8));
196
      jpanel1.add(chkCreateConnectionToDatabase,cc.xy(4,10));
194 197

  
195
      jpanel1.add(createPanel1(),cc.xy(4,6));
196
      jpanel1.add(createPanel2(),cc.xy(4,16));
198
      JLabel jlabel1 = new JLabel();
199
      jlabel1.setText("Autenticacion");
200
      jpanel1.add(jlabel1,cc.xy(2,4));
201

  
202
      jpanel1.add(createPanel1(),cc.xy(4,8));
203
      jpanel1.add(createPanel2(),cc.xy(4,18));
197 204
      jpanel1.add(createPanel3(),cc.xy(4,2));
198
      jpanel1.add(createPanel4(),cc.xywh(2,18,3,1));
199
      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,15,16,17,18,19 });
205
      jpanel1.add(createPanel4(),cc.xywh(2,20,3,1));
206
      jpanel1.add(createPanel5(),cc.xy(4,4));
207
      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,15,16,17,18,19,20,21 });
200 208
      return jpanel1;
201 209
   }
202 210

  
......
330 338
      return jpanel1;
331 339
   }
332 340

  
341
   public JPanel createPanel5()
342
   {
343
      JPanel jpanel1 = new JPanel();
344
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
345
      CellConstraints cc = new CellConstraints();
346
      jpanel1.setLayout(formlayout1);
347

  
348
      cboAuthentication.setName("cboAuthentication");
349
      jpanel1.add(cboAuthentication,cc.xy(1,1));
350

  
351
      btnAuthentication.setActionCommand("...");
352
      btnAuthentication.setIcon(loadImage("datos/devel/org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-auth-config.png"));
353
      btnAuthentication.setName("btnAuthentication");
354
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
355
      btnAuthentication.setBorder(emptyborder1);
356
      jpanel1.add(btnAuthentication,cc.xy(3,1));
357

  
358
      btnAuthenticationTest.setActionCommand("...");
359
      btnAuthenticationTest.setIcon(loadImage("datos/devel/org.gvsig.online/org.gvsig.online.swing/org.gvsig.online.swing.impl/src/main/resources/org/gvsig/online/swing/impl/images/online-auth-test.png"));
360
      btnAuthenticationTest.setName("btnAuthenticationTest");
361
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
362
      btnAuthenticationTest.setBorder(emptyborder2);
363
      jpanel1.add(btnAuthenticationTest,cc.xy(5,1));
364

  
365
      addFillComponents(jpanel1,new int[]{ 2,4 },new int[0]);
366
      return jpanel1;
367
   }
368

  
333 369
   /**
334 370
    * Initializer
335 371
    */

Also available in: Unified diff