svn-gvsig-desktop / branches / F2 / extensions / extJCRS / src-test / org / gvsig / crs / gui / FramDefinirDatum.java @ 10577
History | View | Annotate | Download (1.5 KB)
1 |
package org.gvsig.crs.gui; |
---|---|
2 |
|
3 |
|
4 |
import java.awt.event.WindowAdapter; |
5 |
import java.awt.event.WindowEvent; |
6 |
|
7 |
import javax.swing.JFrame; |
8 |
import javax.swing.UIManager; |
9 |
import javax.swing.UnsupportedLookAndFeelException; |
10 |
|
11 |
import org.gvsig.crs.gui.panels.wizard.DefinirDatum; |
12 |
|
13 |
public class FramDefinirDatum { |
14 |
|
15 |
|
16 |
/**
|
17 |
* @param args
|
18 |
*/
|
19 |
public static void main(String[] args) { |
20 |
|
21 |
JFrame frame = new JFrame("Definici?n del Datum"); |
22 |
/*
|
23 |
com.sun.java.swing.plaf.motif.MotifLookAndFeel
|
24 |
com.sun.java.swing.plaf.windows.WindowsLookAndFeel
|
25 |
javax.swing.plaf.metal.MetalLookAndFeel
|
26 |
*/
|
27 |
try {
|
28 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
29 |
} catch (ClassNotFoundException e1) { |
30 |
// TODO Auto-generated catch block
|
31 |
e1.printStackTrace(); |
32 |
} catch (InstantiationException e1) { |
33 |
// TODO Auto-generated catch block
|
34 |
e1.printStackTrace(); |
35 |
} catch (IllegalAccessException e1) { |
36 |
// TODO Auto-generated catch block
|
37 |
e1.printStackTrace(); |
38 |
} catch (UnsupportedLookAndFeelException e1) { |
39 |
// TODO Auto-generated catch block
|
40 |
e1.printStackTrace(); |
41 |
} |
42 |
//cerrar el formulario
|
43 |
frame.addWindowListener(new WindowAdapter() { |
44 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
45 |
}); |
46 |
|
47 |
frame.getContentPane().add(new DefinirDatum());
|
48 |
frame.setSize(300,500); |
49 |
//colocar en la pantalla
|
50 |
frame.setLocation(300,0); |
51 |
frame.pack(); |
52 |
frame.setVisible(true);
|
53 |
|
54 |
} |
55 |
|
56 |
} |