Statistics
| Revision:

root / trunk / libraries / libUIComponent / src-test-ui / org / gvsig / gui / beans / coorddatainput / TestCoordDataInput.java @ 17644

History | View | Annotate | Download (2.29 KB)

1 12107 bsanchez
/* 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 11445 bsanchez
package org.gvsig.gui.beans.coorddatainput;
20
21 17644 bsanchez
import java.awt.AWTEvent;
22
import java.awt.Event;
23 14396 bsanchez
import java.awt.GridLayout;
24 17644 bsanchez
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 14396 bsanchez
35
import javax.swing.BorderFactory;
36
import javax.swing.JPanel;
37 17644 bsanchez
import javax.swing.JTextField;
38 11445 bsanchez
39 17644 bsanchez
import org.gvsig.gui.beans.TestUI;
40 13556 bsanchez
import org.gvsig.gui.beans.coordinatespanel.CoordinatesPanel;
41
/**
42 17644 bsanchez
 *
43 13556 bsanchez
 * @version 06/09/2007
44
 * @author BorSanZa - Borja S?nchez Zamorano (borja.sanchez@iver.es)
45
 */
46 17644 bsanchez
public class TestCoordDataInput extends TestUI {
47 12107 bsanchez
48
        public TestCoordDataInput() {
49 17644 bsanchez
                super("TestCoordDataInput");
50 14396 bsanchez
51
                CoordinatesPanel coord = new CoordinatesPanel();
52
                coord.setTitlePanel("Coordenadas pixel");
53 13573 bsanchez
                coord.setEnabled(true);
54 14396 bsanchez
55
                CoordinatesPanel coord2 = new CoordinatesPanel();
56
                coord2.setTitlePanel("Coordenadas reales");
57
                coord2.setEnabled(true);
58 17644 bsanchez
59 14396 bsanchez
                JPanel panel = new JPanel(new GridLayout(2, 1, 2, 2));
60
                panel.add(coord);
61
                panel.add(coord2);
62 17644 bsanchez
63
                JTextField field = new JTextField();
64
                panel.add(field);
65
66 14396 bsanchez
                panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
67 17644 bsanchez
68
                add(panel);
69
                pack();
70
                setVisible(true);
71 11445 bsanchez
        }
72
73
        public static void main(String[] args) {
74
                new TestCoordDataInput();
75
        }
76 12107 bsanchez
}