root / trunk / libraries / libUIComponent / src-test-ui / org / gvsig / gui / beans / coorddatainput / TestCoordDataInput.java @ 17644
History | View | Annotate | Download (2.29 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2007 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*/
|
19 |
package org.gvsig.gui.beans.coorddatainput; |
20 |
|
21 |
import java.awt.AWTEvent; |
22 |
import java.awt.Event; |
23 |
import java.awt.GridLayout; |
24 |
import java.awt.event.ComponentEvent; |
25 |
import java.awt.event.ContainerEvent; |
26 |
import java.awt.event.FocusEvent; |
27 |
import java.awt.event.HierarchyEvent; |
28 |
import java.awt.event.InputMethodEvent; |
29 |
import java.awt.event.KeyEvent; |
30 |
import java.awt.event.KeyListener; |
31 |
import java.awt.event.MouseEvent; |
32 |
import java.awt.event.MouseWheelEvent; |
33 |
import java.awt.event.WindowEvent; |
34 |
|
35 |
import javax.swing.BorderFactory; |
36 |
import javax.swing.JPanel; |
37 |
import javax.swing.JTextField; |
38 |
|
39 |
import org.gvsig.gui.beans.TestUI; |
40 |
import org.gvsig.gui.beans.coordinatespanel.CoordinatesPanel; |
41 |
/**
|
42 |
*
|
43 |
* @version 06/09/2007
|
44 |
* @author BorSanZa - Borja S?nchez Zamorano (borja.sanchez@iver.es)
|
45 |
*/
|
46 |
public class TestCoordDataInput extends TestUI { |
47 |
|
48 |
public TestCoordDataInput() {
|
49 |
super("TestCoordDataInput"); |
50 |
|
51 |
CoordinatesPanel coord = new CoordinatesPanel();
|
52 |
coord.setTitlePanel("Coordenadas pixel");
|
53 |
coord.setEnabled(true);
|
54 |
|
55 |
CoordinatesPanel coord2 = new CoordinatesPanel();
|
56 |
coord2.setTitlePanel("Coordenadas reales");
|
57 |
coord2.setEnabled(true);
|
58 |
|
59 |
JPanel panel = new JPanel(new GridLayout(2, 1, 2, 2)); |
60 |
panel.add(coord); |
61 |
panel.add(coord2); |
62 |
|
63 |
JTextField field = new JTextField(); |
64 |
panel.add(field); |
65 |
|
66 |
panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5)); |
67 |
|
68 |
add(panel); |
69 |
pack(); |
70 |
setVisible(true);
|
71 |
} |
72 |
|
73 |
public static void main(String[] args) { |
74 |
new TestCoordDataInput();
|
75 |
} |
76 |
} |