svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.exportto / org.gvsig.exportto.swing / org.gvsig.exportto.swing.prov / org.gvsig.exportto.swing.prov.jdbc / src / main / java / org / gvsig / exportto / swing / prov / jdbc / panel / DBConnectionPanelLayout.java @ 41487
History | View | Annotate | Download (8.69 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.exportto.swing.prov.jdbc.panel; |
8 |
|
9 |
/**
|
10 |
*
|
11 |
* @author jjdelcerro
|
12 |
*/
|
13 |
public class DBConnectionPanelLayout extends javax.swing.JPanel { |
14 |
|
15 |
/**
|
16 |
* Creates new form DBConnectionPanelLayout
|
17 |
*/
|
18 |
public DBConnectionPanelLayout() {
|
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 |
@SuppressWarnings("unchecked") |
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 |
botManage = new javax.swing.JButton();
|
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 |
add(cboConnectors, gridBagConstraints); |
117 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
118 |
gridBagConstraints.gridx = 4;
|
119 |
gridBagConstraints.gridy = 6;
|
120 |
gridBagConstraints.gridwidth = 3;
|
121 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
122 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
123 |
add(txtServer, gridBagConstraints); |
124 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
125 |
gridBagConstraints.gridx = 4;
|
126 |
gridBagConstraints.gridy = 8;
|
127 |
gridBagConstraints.gridwidth = 3;
|
128 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
129 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
130 |
add(txtPort, gridBagConstraints); |
131 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
132 |
gridBagConstraints.gridx = 4;
|
133 |
gridBagConstraints.gridy = 10;
|
134 |
gridBagConstraints.gridwidth = 3;
|
135 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
136 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
137 |
add(txtDataBase, gridBagConstraints); |
138 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
139 |
gridBagConstraints.gridx = 4;
|
140 |
gridBagConstraints.gridy = 12;
|
141 |
gridBagConstraints.gridwidth = 3;
|
142 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
143 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
144 |
add(txtUsername, gridBagConstraints); |
145 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
146 |
gridBagConstraints.gridx = 4;
|
147 |
gridBagConstraints.gridy = 14;
|
148 |
gridBagConstraints.gridwidth = 3;
|
149 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
150 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
151 |
add(txtPassword, gridBagConstraints); |
152 |
|
153 |
lblFoother.setText("<html>\nTenga en cuenta que el nombre de usuario y la contrase?a deben coincidir mayusculas y minusculas con el registrado en la base de dato.\n<html>"); // NOI18N |
154 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
155 |
gridBagConstraints.gridx = 2;
|
156 |
gridBagConstraints.gridy = 18;
|
157 |
gridBagConstraints.gridwidth = 3;
|
158 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
159 |
add(lblFoother, gridBagConstraints); |
160 |
|
161 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
162 |
gridBagConstraints.gridx = 4;
|
163 |
gridBagConstraints.gridy = 2;
|
164 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
165 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START; |
166 |
add(cboConnections, gridBagConstraints); |
167 |
|
168 |
botManage.setText("Manage");
|
169 |
gridBagConstraints = new java.awt.GridBagConstraints();
|
170 |
gridBagConstraints.gridx = 6;
|
171 |
gridBagConstraints.gridy = 2;
|
172 |
add(botManage, gridBagConstraints); |
173 |
}// </editor-fold>//GEN-END:initComponents
|
174 |
|
175 |
|
176 |
// Variables declaration - do not modify//GEN-BEGIN:variables
|
177 |
protected javax.swing.JButton botManage;
|
178 |
protected javax.swing.JComboBox cboConnections;
|
179 |
protected javax.swing.JComboBox cboConnectors;
|
180 |
protected javax.swing.JLabel lblConnectionName;
|
181 |
protected javax.swing.JLabel lblConnector;
|
182 |
protected javax.swing.JLabel lblDataBase;
|
183 |
protected javax.swing.JLabel lblFoother;
|
184 |
protected javax.swing.JLabel lblPassword;
|
185 |
protected javax.swing.JLabel lblPort;
|
186 |
protected javax.swing.JLabel lblServer;
|
187 |
protected javax.swing.JLabel lblUsername;
|
188 |
protected javax.swing.JTextField txtDataBase;
|
189 |
protected javax.swing.JPasswordField txtPassword;
|
190 |
protected javax.swing.JTextField txtPort;
|
191 |
protected javax.swing.JTextField txtServer;
|
192 |
protected javax.swing.JTextField txtUsername;
|
193 |
// End of variables declaration//GEN-END:variables
|
194 |
} |