Revision 45616 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/export/jdbc/swing/panels/SelectTableNamePanelLayout.java
SelectTableNamePanelLayout.java | ||
---|---|---|
43 | 43 |
txtTableName = new javax.swing.JTextField(); |
44 | 44 |
filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(16, 0), new java.awt.Dimension(16, 0), new java.awt.Dimension(16, 32767)); |
45 | 45 |
filler2 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 0), new java.awt.Dimension(0, 32767)); |
46 |
lblCaseSensitiveNote = new javax.swing.JLabel(); |
|
46 | 47 |
|
47 | 48 |
java.awt.GridBagLayout layout = new java.awt.GridBagLayout(); |
48 |
layout.columnWidths = new int[] {0, 5, 0, 5, 0, 5, 0}; |
|
49 |
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, 5, 0}; |
|
49 |
layout.columnWidths = new int[] {0, 5, 0, 5, 0, 5, 0, 5, 0};
|
|
50 |
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, 5, 0, 5, 0};
|
|
50 | 51 |
setLayout(layout); |
51 | 52 |
|
52 |
lblHeader.setText("Indique donde desea insertar los datos"); // NOI18N
|
|
53 |
lblHeader.setText("_Indique_donde_desea_insertar_los_datos"); // NOI18N
|
|
53 | 54 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
54 | 55 |
gridBagConstraints.gridx = 2; |
55 | 56 |
gridBagConstraints.gridy = 2; |
56 |
gridBagConstraints.gridwidth = 3;
|
|
57 |
gridBagConstraints.gridwidth = 7;
|
|
57 | 58 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
58 | 59 |
gridBagConstraints.weightx = 0.1; |
59 | 60 |
add(lblHeader, gridBagConstraints); |
60 | 61 |
|
61 |
lblWarningUseExistingTable.setText("<html>\nLos datos se insertaran usando los nombres de columna que coincidan con \n la tabla origen, dejandose al valor por defecto para los que no \n haya valores en la tabla origen\n</html>"); // NOI18N
|
|
62 |
lblWarningUseExistingTable.setText("_Los_datos_se_insertaran_usando_los_nombres_de_columna_que_coincidan_con_la_tabla_origen_dejandose_al_valor_por_defecto_para_los_que_no_haya_valores_en_la_tabla_origen"); // NOI18N
|
|
62 | 63 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
63 |
gridBagConstraints.gridx = 4;
|
|
64 |
gridBagConstraints.gridx = 6;
|
|
64 | 65 |
gridBagConstraints.gridy = 6; |
66 |
gridBagConstraints.gridwidth = 3; |
|
65 | 67 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
66 | 68 |
gridBagConstraints.weightx = 0.2; |
67 | 69 |
add(lblWarningUseExistingTable, gridBagConstraints); |
68 | 70 |
|
69 | 71 |
buttonGroup1.add(rdoInsert); |
70 |
rdoInsert.setText("Insertar registros en una tabla existente"); |
|
72 |
rdoInsert.setText("_Insertar_registros_en_una_tabla_existente"); |
|
73 |
rdoInsert.addActionListener(new java.awt.event.ActionListener() { |
|
74 |
public void actionPerformed(java.awt.event.ActionEvent evt) { |
|
75 |
rdoInsertActionPerformed(evt); |
|
76 |
} |
|
77 |
}); |
|
71 | 78 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
72 | 79 |
gridBagConstraints.gridx = 2; |
73 | 80 |
gridBagConstraints.gridy = 4; |
74 |
gridBagConstraints.gridwidth = 3;
|
|
81 |
gridBagConstraints.gridwidth = 7;
|
|
75 | 82 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
76 | 83 |
gridBagConstraints.weightx = 0.1; |
77 | 84 |
add(rdoInsert, gridBagConstraints); |
78 | 85 |
|
79 |
lblSelectTableName.setText("Seleccione la tabla a usar:");
|
|
86 |
lblSelectTableName.setText("_Seleccione_la_tabla_a_usar");
|
|
80 | 87 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
81 |
gridBagConstraints.gridx = 4;
|
|
88 |
gridBagConstraints.gridx = 6;
|
|
82 | 89 |
gridBagConstraints.gridy = 8; |
83 | 90 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
84 | 91 |
add(lblSelectTableName, gridBagConstraints); |
... | ... | |
86 | 93 |
jScrollPane1.setViewportView(lstTables); |
87 | 94 |
|
88 | 95 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
89 |
gridBagConstraints.gridx = 4;
|
|
96 |
gridBagConstraints.gridx = 6;
|
|
90 | 97 |
gridBagConstraints.gridy = 10; |
98 |
gridBagConstraints.gridwidth = 3; |
|
91 | 99 |
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; |
92 | 100 |
gridBagConstraints.weightx = 0.1; |
93 | 101 |
gridBagConstraints.weighty = 0.2; |
94 | 102 |
add(jScrollPane1, gridBagConstraints); |
95 | 103 |
|
96 | 104 |
buttonGroup1.add(rdoCreateTable); |
97 |
rdoCreateTable.setText("Crear una tabla nueva");
|
|
105 |
rdoCreateTable.setText("_Crear_una_tabla_nueva");
|
|
98 | 106 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
99 | 107 |
gridBagConstraints.gridx = 2; |
100 | 108 |
gridBagConstraints.gridy = 12; |
101 |
gridBagConstraints.gridwidth = 3;
|
|
109 |
gridBagConstraints.gridwidth = 7;
|
|
102 | 110 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
103 | 111 |
gridBagConstraints.weightx = 0.1; |
104 | 112 |
add(rdoCreateTable, gridBagConstraints); |
105 | 113 |
|
106 |
lblSchema.setText("Indique el esquema en el que desea crear la tabla:");
|
|
114 |
lblSchema.setText("_Indique_el_esquema_en_el_que_desea_crear_la_tabla");
|
|
107 | 115 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
108 |
gridBagConstraints.gridx = 4;
|
|
116 |
gridBagConstraints.gridx = 6;
|
|
109 | 117 |
gridBagConstraints.gridy = 14; |
118 |
gridBagConstraints.gridwidth = 3; |
|
110 | 119 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
111 | 120 |
add(lblSchema, gridBagConstraints); |
112 | 121 |
|
113 | 122 |
txtSchema.setText("public"); |
114 | 123 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
115 |
gridBagConstraints.gridx = 4;
|
|
124 |
gridBagConstraints.gridx = 6;
|
|
116 | 125 |
gridBagConstraints.gridy = 16; |
126 |
gridBagConstraints.gridwidth = 3; |
|
117 | 127 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
118 | 128 |
add(txtSchema, gridBagConstraints); |
119 | 129 |
|
120 |
lblTableName.setText("Indique el nombre de la tabla:");
|
|
130 |
lblTableName.setText("_Indique_el_nombre_de_la_tabla");
|
|
121 | 131 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
122 |
gridBagConstraints.gridx = 4;
|
|
123 |
gridBagConstraints.gridy = 18;
|
|
132 |
gridBagConstraints.gridx = 6;
|
|
133 |
gridBagConstraints.gridy = 20;
|
|
124 | 134 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
125 | 135 |
add(lblTableName, gridBagConstraints); |
126 | 136 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
127 |
gridBagConstraints.gridx = 4; |
|
128 |
gridBagConstraints.gridy = 20; |
|
137 |
gridBagConstraints.gridx = 6; |
|
138 |
gridBagConstraints.gridy = 22; |
|
139 |
gridBagConstraints.gridwidth = 3; |
|
129 | 140 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
130 | 141 |
add(txtTableName, gridBagConstraints); |
131 | 142 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
... | ... | |
134 | 145 |
add(filler1, gridBagConstraints); |
135 | 146 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
136 | 147 |
gridBagConstraints.gridx = 2; |
137 |
gridBagConstraints.gridy = 22;
|
|
148 |
gridBagConstraints.gridy = 24;
|
|
138 | 149 |
gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL; |
139 | 150 |
gridBagConstraints.weighty = 0.1; |
140 | 151 |
add(filler2, gridBagConstraints); |
152 |
|
|
153 |
lblCaseSensitiveNote.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); |
|
154 |
lblCaseSensitiveNote.setText("_Note_that_the_schema_must_match_in_uppercase_and_lowercase_with_the_one_registered_in_the_database"); |
|
155 |
lblCaseSensitiveNote.setVerticalAlignment(javax.swing.SwingConstants.TOP); |
|
156 |
gridBagConstraints = new java.awt.GridBagConstraints(); |
|
157 |
gridBagConstraints.gridx = 8; |
|
158 |
gridBagConstraints.gridy = 18; |
|
159 |
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; |
|
160 |
gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; |
|
161 |
add(lblCaseSensitiveNote, gridBagConstraints); |
|
141 | 162 |
}// </editor-fold>//GEN-END:initComponents |
142 | 163 |
|
164 |
private void rdoInsertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rdoInsertActionPerformed |
|
165 |
// TODO add your handling code here: |
|
166 |
}//GEN-LAST:event_rdoInsertActionPerformed |
|
143 | 167 |
|
168 |
|
|
144 | 169 |
// Variables declaration - do not modify//GEN-BEGIN:variables |
145 | 170 |
protected javax.swing.ButtonGroup buttonGroup1; |
146 | 171 |
protected javax.swing.Box.Filler filler1; |
147 | 172 |
protected javax.swing.Box.Filler filler2; |
148 | 173 |
protected javax.swing.JScrollPane jScrollPane1; |
174 |
protected javax.swing.JLabel lblCaseSensitiveNote; |
|
149 | 175 |
protected javax.swing.JLabel lblHeader; |
150 | 176 |
protected javax.swing.JLabel lblSchema; |
151 | 177 |
protected javax.swing.JLabel lblSelectTableName; |
Also available in: Unified diff