Revision 43377 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/jdbc/DefaultJDBCConnectionPanelView.java
DefaultJDBCConnectionPanelView.java | ||
---|---|---|
14 | 14 |
import javax.swing.JFrame; |
15 | 15 |
import javax.swing.JLabel; |
16 | 16 |
import javax.swing.JPanel; |
17 |
import javax.swing.JPasswordField; |
|
17 | 18 |
import javax.swing.JTextField; |
18 | 19 |
|
19 | 20 |
|
... | ... | |
31 | 32 |
JTextField txtServer = new JTextField(); |
32 | 33 |
JTextField txtPort = new JTextField(); |
33 | 34 |
JTextField txtUsername = new JTextField(); |
34 |
JTextField txtPassword = new JTextField(); |
|
35 |
JTextField txtDataBase = new JTextField(); |
|
36 |
JPasswordField txtPassword = new JPasswordField(); |
|
37 |
JLabel lblFile = new JLabel(); |
|
35 | 38 |
JLabel lblFoother = new JLabel(); |
36 |
JTextField txtDataBase = new JTextField();
|
|
39 |
JTextField txtFile = new JTextField();
|
|
37 | 40 |
JButton btnDataBaseBrowser = new JButton(); |
38 | 41 |
|
39 | 42 |
/** |
... | ... | |
126 | 129 |
public JPanel createPanel() |
127 | 130 |
{ |
128 | 131 |
JPanel jpanel1 = new JPanel(); |
129 |
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:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE"); |
|
132 |
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:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE");
|
|
130 | 133 |
CellConstraints cc = new CellConstraints(); |
131 | 134 |
jpanel1.setLayout(formlayout1); |
132 | 135 |
|
... | ... | |
140 | 143 |
|
141 | 144 |
lblServer.setName("lblServer"); |
142 | 145 |
lblServer.setText("Servidor"); |
143 |
jpanel1.add(lblServer,cc.xy(2,6));
|
|
146 |
jpanel1.add(lblServer,cc.xy(2,8));
|
|
144 | 147 |
|
145 | 148 |
lblPort.setName("lblPort"); |
146 | 149 |
lblPort.setText("Puerto"); |
147 |
jpanel1.add(lblPort,cc.xy(2,8));
|
|
150 |
jpanel1.add(lblPort,cc.xy(2,10));
|
|
148 | 151 |
|
149 | 152 |
lblDataBase.setName("lblDataBase"); |
150 | 153 |
lblDataBase.setText("Base de datos"); |
151 |
jpanel1.add(lblDataBase,cc.xy(2,10));
|
|
154 |
jpanel1.add(lblDataBase,cc.xy(2,12));
|
|
152 | 155 |
|
153 | 156 |
lblUsername.setName("lblUsername"); |
154 | 157 |
lblUsername.setText("Usuario"); |
155 |
jpanel1.add(lblUsername,cc.xy(2,12));
|
|
158 |
jpanel1.add(lblUsername,cc.xy(2,14));
|
|
156 | 159 |
|
157 | 160 |
lblPassword.setName("lblPassword"); |
158 | 161 |
lblPassword.setText("Clave"); |
159 |
jpanel1.add(lblPassword,cc.xy(2,14));
|
|
162 |
jpanel1.add(lblPassword,cc.xy(2,16));
|
|
160 | 163 |
|
161 | 164 |
cboConnections.setEditable(true); |
162 | 165 |
cboConnections.setName("cboConnections"); |
... | ... | |
167 | 170 |
jpanel1.add(cboConnectors,cc.xy(4,4)); |
168 | 171 |
|
169 | 172 |
txtServer.setName("txtServer"); |
170 |
jpanel1.add(txtServer,cc.xy(4,6));
|
|
173 |
jpanel1.add(txtServer,cc.xy(4,8));
|
|
171 | 174 |
|
172 | 175 |
txtPort.setName("txtPort"); |
173 |
jpanel1.add(txtPort,cc.xy(4,8));
|
|
176 |
jpanel1.add(txtPort,cc.xy(4,10));
|
|
174 | 177 |
|
175 | 178 |
txtUsername.setName("txtUsername"); |
176 |
jpanel1.add(txtUsername,cc.xy(4,12));
|
|
179 |
jpanel1.add(txtUsername,cc.xy(4,14));
|
|
177 | 180 |
|
181 |
txtDataBase.setName("txtDataBase"); |
|
182 |
jpanel1.add(txtDataBase,cc.xy(4,12)); |
|
183 |
|
|
178 | 184 |
txtPassword.setName("txtPassword"); |
179 |
jpanel1.add(txtPassword,cc.xy(4,14));
|
|
185 |
jpanel1.add(txtPassword,cc.xy(4,16));
|
|
180 | 186 |
|
181 |
jpanel1.add(createPanel1(),cc.xywh(2,16,3,1)); |
|
182 |
jpanel1.add(createPanel2(),cc.xy(4,10)); |
|
183 |
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 }); |
|
187 |
lblFile.setName("lblFile"); |
|
188 |
lblFile.setText("Fichero"); |
|
189 |
jpanel1.add(lblFile,cc.xy(2,6)); |
|
190 |
|
|
191 |
jpanel1.add(createPanel1(),cc.xywh(2,18,3,1)); |
|
192 |
jpanel1.add(createPanel2(),cc.xy(4,6)); |
|
193 |
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 }); |
|
184 | 194 |
return jpanel1; |
185 | 195 |
} |
186 | 196 |
|
... | ... | |
202 | 212 |
public JPanel createPanel2() |
203 | 213 |
{ |
204 | 214 |
JPanel jpanel1 = new JPanel(); |
205 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
|
215 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
|
|
206 | 216 |
CellConstraints cc = new CellConstraints(); |
207 | 217 |
jpanel1.setLayout(formlayout1); |
208 | 218 |
|
209 |
txtDataBase.setName("txtDataBase");
|
|
210 |
jpanel1.add(txtDataBase,cc.xy(1,1));
|
|
219 |
txtFile.setName("txtFile");
|
|
220 |
jpanel1.add(txtFile,cc.xy(1,1));
|
|
211 | 221 |
|
212 | 222 |
btnDataBaseBrowser.setActionCommand("..."); |
213 | 223 |
btnDataBaseBrowser.setName("btnDataBaseBrowser"); |
214 | 224 |
btnDataBaseBrowser.setText("..."); |
215 |
jpanel1.add(btnDataBaseBrowser,cc.xy(2,1));
|
|
225 |
jpanel1.add(btnDataBaseBrowser,cc.xy(3,1));
|
|
216 | 226 |
|
217 |
addFillComponents(jpanel1,new int[0],new int[0]);
|
|
227 |
addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
|
|
218 | 228 |
return jpanel1; |
219 | 229 |
} |
220 | 230 |
|
Also available in: Unified diff