svn-gvsig-desktop / 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 / DefaultJDBCConnectionPanelLayout.java @ 42104
History | View | Annotate | Download (9.17 KB)
1 |
/*
|
---|---|
2 |
* To change this license header, choose License Headers in Project Properties.
|
3 |
* To change this template file, choose Tools | Templates
|
4 |
* and open the template in the editor.
|
5 |
*/
|
6 |
|
7 |
package org.gvsig.fmap.dal.swing.impl.jdbc; |
8 |
|
9 |
/**
|
10 |
*
|
11 |
* @author jjdelcerro
|
12 |
*/
|
13 |
public class DefaultJDBCConnectionPanelLayout extends javax.swing.JPanel { |
14 |
|
15 |
/**
|
16 |
* Creates new form DBConnectionPanelLayout
|
17 |
*/
|
18 |
public DefaultJDBCConnectionPanelLayout() {
|
19 |
initComponents(); |
20 |
} |
21 |
|
22 |
/**
|
23 |
* This method is called from within the constructor to initialize the form.
|
24 |
* WARNING: Do NOT modify this code. The content of this method is always
|
25 |
* regenerated by the Form Editor.
|
26 |
*/
|
27 |
|
28 |
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
|
29 |
private void initComponents() { |
30 |
java.awt.GridBagConstraints gridBagConstraints; |
31 |
|
32 |
lblConnectionName = new javax.swing.JLabel();
|
33 |
lblConnector = new javax.swing.JLabel();
|
34 |
lblServer = new javax.swing.JLabel();
|
35 |
lblPort = new javax.swing.JLabel();
|
36 |
lblDataBase = new javax.swing.JLabel();
|
37 |
lblUsername = new javax.swing.JLabel();
|
38 |
lblPassword = new javax.swing.JLabel();
|
39 |
cboConnectors = new javax.swing.JComboBox();
|
40 |
txtServer = new javax.swing.JTextField();
|
41 |
txtPort = new javax.swing.JTextField();
|
42 |
txtDataBase = new javax.swing.JTextField();
|
43 |
txtUsername = new javax.swing.JTextField();
|
44 |
txtPassword = new javax.swing.JPasswordField();
|
45 |
lblFoother = new javax.swing.JLabel();
|
46 |
cboConnections = new javax.swing.JComboBox();
|
47 |
filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 32767)); |
48 |
|
49 |
java.awt.GridBagLayout layout = new java.awt.GridBagLayout();
|
50 |
layout.columnWidths = new int[] {0, 5, 0, 5, 0, 5, 0, 5, 0}; |
51 |
layout.rowHeights = new int[] {0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0}; |
52 |
setLayout(layout); |
53 |
|
54 |
lblConnectionName.setText("Nombre de la conexion:");
|
55 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
56 |
gridBagConstraints.gridx = 2;
|
57 |
gridBagConstraints.gridy = 2;
|
58 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
59 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
60 |
add(lblConnectionName, gridBagConstraints); |
61 |
|
62 |
lblConnector.setText("Conector");
|
63 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
64 |
gridBagConstraints.gridx = 2;
|
65 |
gridBagConstraints.gridy = 4;
|
66 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
67 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
68 |
add(lblConnector, gridBagConstraints); |
69 |
|
70 |
lblServer.setText("Servidor");
|
71 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
72 |
gridBagConstraints.gridx = 2;
|
73 |
gridBagConstraints.gridy = 6;
|
74 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
75 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
76 |
add(lblServer, gridBagConstraints); |
77 |
|
78 |
lblPort.setText("Puerto");
|
79 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
80 |
gridBagConstraints.gridx = 2;
|
81 |
gridBagConstraints.gridy = 8;
|
82 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
83 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
84 |
add(lblPort, gridBagConstraints); |
85 |
|
86 |
lblDataBase.setText("Base de datos");
|
87 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
88 |
gridBagConstraints.gridx = 2;
|
89 |
gridBagConstraints.gridy = 10;
|
90 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
91 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
92 |
add(lblDataBase, gridBagConstraints); |
93 |
|
94 |
lblUsername.setText("Usuario");
|
95 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
96 |
gridBagConstraints.gridx = 2;
|
97 |
gridBagConstraints.gridy = 12;
|
98 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
99 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
100 |
add(lblUsername, gridBagConstraints); |
101 |
|
102 |
lblPassword.setText("Clave");
|
103 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
104 |
gridBagConstraints.gridx = 2;
|
105 |
gridBagConstraints.gridy = 14;
|
106 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
107 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
108 |
add(lblPassword, gridBagConstraints); |
109 |
|
110 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
111 |
gridBagConstraints.gridx = 4;
|
112 |
gridBagConstraints.gridy = 4;
|
113 |
gridBagConstraints.gridwidth = 3;
|
114 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
115 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
116 |
gridBagConstraints.weightx = 0.1;
|
117 |
add(cboConnectors, gridBagConstraints); |
118 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
119 |
gridBagConstraints.gridx = 4;
|
120 |
gridBagConstraints.gridy = 6;
|
121 |
gridBagConstraints.gridwidth = 3;
|
122 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
123 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
124 |
gridBagConstraints.weightx = 0.1;
|
125 |
add(txtServer, gridBagConstraints); |
126 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
127 |
gridBagConstraints.gridx = 4;
|
128 |
gridBagConstraints.gridy = 8;
|
129 |
gridBagConstraints.gridwidth = 3;
|
130 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
131 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
132 |
gridBagConstraints.weightx = 0.1;
|
133 |
add(txtPort, gridBagConstraints); |
134 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
135 |
gridBagConstraints.gridx = 4;
|
136 |
gridBagConstraints.gridy = 10;
|
137 |
gridBagConstraints.gridwidth = 3;
|
138 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
139 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
140 |
gridBagConstraints.weightx = 0.1;
|
141 |
add(txtDataBase, gridBagConstraints); |
142 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
143 |
gridBagConstraints.gridx = 4;
|
144 |
gridBagConstraints.gridy = 12;
|
145 |
gridBagConstraints.gridwidth = 3;
|
146 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
147 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
148 |
gridBagConstraints.weightx = 0.1;
|
149 |
add(txtUsername, gridBagConstraints); |
150 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
151 |
gridBagConstraints.gridx = 4;
|
152 |
gridBagConstraints.gridy = 14;
|
153 |
gridBagConstraints.gridwidth = 3;
|
154 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
155 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
156 |
gridBagConstraints.weightx = 0.1;
|
157 |
add(txtPassword, gridBagConstraints); |
158 |
|
159 |
lblFoother.setText("<html>\nTenga en cuenta que el nombre de usuario y la contrase?a deben coincidir en mayusculas y minusculas con el registrado en la base de dato.\n<html>"); // NOI18N |
160 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
161 |
gridBagConstraints.gridx = 2;
|
162 |
gridBagConstraints.gridy = 18;
|
163 |
gridBagConstraints.gridwidth = 5;
|
164 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
165 |
gridBagConstraints.weightx = 0.1;
|
166 |
add(lblFoother, gridBagConstraints); |
167 |
|
168 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
169 |
gridBagConstraints.gridx = 4;
|
170 |
gridBagConstraints.gridy = 2;
|
171 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
172 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
173 |
gridBagConstraints.weightx = 0.1;
|
174 |
add(cboConnections, gridBagConstraints); |
175 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
176 |
gridBagConstraints.gridx = 2;
|
177 |
gridBagConstraints.gridy = 20;
|
178 |
gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; |
179 |
gridBagConstraints.weighty = 0.2;
|
180 |
add(filler1, gridBagConstraints); |
181 |
}// </editor-fold>//GEN-END:initComponents
|
182 |
|
183 |
|
184 |
// Variables declaration - do not modify//GEN-BEGIN:variables
|
185 |
protected javax.swing.JComboBox cboConnections;
|
186 |
protected javax.swing.JComboBox cboConnectors;
|
187 |
protected javax.swing.Box.Filler filler1;
|
188 |
protected javax.swing.JLabel lblConnectionName;
|
189 |
protected javax.swing.JLabel lblConnector;
|
190 |
protected javax.swing.JLabel lblDataBase;
|
191 |
protected javax.swing.JLabel lblFoother;
|
192 |
protected javax.swing.JLabel lblPassword;
|
193 |
protected javax.swing.JLabel lblPort;
|
194 |
protected javax.swing.JLabel lblServer;
|
195 |
protected javax.swing.JLabel lblUsername;
|
196 |
protected javax.swing.JTextField txtDataBase;
|
197 |
protected javax.swing.JPasswordField txtPassword;
|
198 |
protected javax.swing.JTextField txtPort;
|
199 |
protected javax.swing.JTextField txtServer;
|
200 |
protected javax.swing.JTextField txtUsername;
|
201 |
// End of variables declaration//GEN-END:variables
|
202 |
} |