Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.ui / src / test / java / org / gvsig / gui / beans / coorddatainput / TestCoordDataInput.java @ 40561

History | View | Annotate | Download (1.99 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.gui.beans.coorddatainput;
25

    
26
import java.awt.GridLayout;
27

    
28
import javax.swing.BorderFactory;
29
import javax.swing.JPanel;
30
import javax.swing.JTextField;
31

    
32
import org.gvsig.gui.beans.TestUI;
33
import org.gvsig.gui.beans.coordinatespanel.CoordinatesPanel;
34
/**
35
 *
36
 * @version 06/09/2007
37
 * @author BorSanZa - Borja S?nchez Zamorano (borja.sanchez@iver.es)
38
 */
39
public class TestCoordDataInput extends TestUI {
40

    
41
        public TestCoordDataInput() {
42
                super("TestCoordDataInput");
43

    
44
                CoordinatesPanel coord = new CoordinatesPanel();
45
                coord.setTitlePanel("Coordenadas pixel");
46
                coord.setEnabled(true);
47

    
48
                CoordinatesPanel coord2 = new CoordinatesPanel();
49
                coord2.setTitlePanel("Coordenadas reales");
50
                coord2.setEnabled(true);
51

    
52
                JPanel panel = new JPanel(new GridLayout(2, 1, 2, 2));
53
                panel.add(coord);
54
                panel.add(coord2);
55

    
56
                JTextField field = new JTextField();
57
                panel.add(field);
58

    
59
                panel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
60

    
61
                add(panel);
62
                pack();
63
                setVisible(true);
64
        }
65

    
66
        public static void main(String[] args) {
67
                new TestCoordDataInput();
68
        }
69
}