Statistics
| Revision:

gvsig-geoprocess / org.gvsig.geoprocess / trunk / org.gvsig.geoprocess / org.gvsig.geoprocess.algorithm / org.gvsig.geoprocess.algorithm.convexhull / src / main / java / org / gvsig / geoprocess / algorithm / convexhull / TestPanel.java @ 237

History | View | Annotate | Download (1.79 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007,2012 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 2
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
package org.gvsig.geoprocess.algorithm.convexhull;
22

    
23
import javax.swing.JFrame;
24
import javax.swing.UIManager;
25

    
26
public class TestPanel {
27
        private JFrame                                     frame = new JFrame();
28
        @SuppressWarnings("deprecation")
29
        private ConvexHullParametersPanel        hp = null;
30

    
31
        public TestPanel() {
32
                super();
33
                initialize();
34
        }
35

    
36
        public static void main(String[] args){
37
                try {
38
                        UIManager.setLookAndFeel("com.jgoodies.looks.plastic.PlasticXPLookAndFeel");
39
                } catch( Exception e ) {
40
                        System.err.println( "No se puede cambiar al LookAndFeel");
41
                }
42
                new TestPanel();
43
        }
44

    
45
        @SuppressWarnings("deprecation")
46
        private void initialize() {
47
                frame.setSize(new java.awt.Dimension(370, 50));
48
                hp = new ConvexHullParametersPanel();
49
                hp.init(null);
50
                frame.setContentPane(hp);
51
                frame.setResizable(true);
52
                frame.setTitle("Panel");
53
                frame.setVisible(true);
54
                frame.addWindowListener(new java.awt.event.WindowAdapter() {
55
                        public void windowClosing(java.awt.event.WindowEvent e) {
56
                                System.exit(0);
57
                        }
58
                });
59
        }
60
}