Revision 44480 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.h2spatial.app/org.gvsig.h2spatial.app.mainplugin/src/main/java/org/gvsig/h2spatial/ImportTableView.java
ImportTableView.java | ||
---|---|---|
8 | 8 |
import java.awt.ComponentOrientation; |
9 | 9 |
import java.awt.Container; |
10 | 10 |
import java.awt.Dimension; |
11 |
import java.awt.event.WindowAdapter; |
|
12 |
import java.awt.event.WindowEvent; |
|
11 | 13 |
import javax.swing.Box; |
12 | 14 |
import javax.swing.ImageIcon; |
13 | 15 |
import javax.swing.JButton; |
... | ... | |
43 | 45 |
} |
44 | 46 |
|
45 | 47 |
/** |
48 |
* Main method for panel |
|
49 |
*/ |
|
50 |
public static void main(String[] args) |
|
51 |
{ |
|
52 |
JFrame frame = new JFrame(); |
|
53 |
frame.setSize(600, 400); |
|
54 |
frame.setLocation(100, 100); |
|
55 |
frame.getContentPane().add(new ImportTableView()); |
|
56 |
frame.setVisible(true); |
|
57 |
|
|
58 |
frame.addWindowListener( new WindowAdapter() |
|
59 |
{ |
|
60 |
public void windowClosing( WindowEvent evt ) |
|
61 |
{ |
|
62 |
System.exit(0); |
|
63 |
} |
|
64 |
}); |
|
65 |
} |
|
66 |
|
|
67 |
/** |
|
46 | 68 |
* Adds fill components to empty cells in the first row and first column of the grid. |
47 | 69 |
* This ensures that the grid spacing will be the same as shown in the designer. |
48 | 70 |
* @param cols an array of column indices in the first row where fill components should be added. |
... | ... | |
129 | 151 |
jpanel1.setLayout(formlayout1); |
130 | 152 |
|
131 | 153 |
lblConnection.setName("lblConnection"); |
132 |
lblConnection.setText("Connection"); |
|
154 |
lblConnection.setText("_Connection");
|
|
133 | 155 |
jpanel1.add(lblConnection,cc.xy(2,2)); |
134 | 156 |
|
135 | 157 |
lblFileType.setName("lblFileType"); |
136 |
lblFileType.setText("File type");
|
|
158 |
lblFileType.setText("_File_type");
|
|
137 | 159 |
jpanel1.add(lblFileType,cc.xy(2,4)); |
138 | 160 |
|
139 | 161 |
lblFile.setName("lblFile"); |
140 |
lblFile.setText("File"); |
|
162 |
lblFile.setText("_File");
|
|
141 | 163 |
jpanel1.add(lblFile,cc.xy(2,6)); |
142 | 164 |
|
143 | 165 |
lblTableName.setName("lblTableName"); |
144 |
lblTableName.setText("Table name");
|
|
166 |
lblTableName.setText("_Table_name");
|
|
145 | 167 |
jpanel1.add(lblTableName,cc.xy(2,8)); |
146 | 168 |
|
147 | 169 |
lblDeleteTables.setName("lblDeleteTables"); |
148 |
lblDeleteTables.setText("Delete tables");
|
|
170 |
lblDeleteTables.setText("_Delete_tables");
|
|
149 | 171 |
jpanel1.add(lblDeleteTables,cc.xy(2,10)); |
150 | 172 |
|
151 | 173 |
cboConnection.setName("cboConnection"); |
Also available in: Unified diff