Revision 11102
branches/F2/extensions/extJCRS/src-test/org/gvsig/crs/gui/CrsMainPanelTest.java | ||
---|---|---|
1 |
package org.gvsig.crs.gui; |
|
2 |
|
|
3 |
import java.awt.event.WindowAdapter; |
|
4 |
import java.awt.event.WindowEvent; |
|
5 |
|
|
6 |
import javax.swing.JFrame; |
|
7 |
import javax.swing.JPanel; |
|
8 |
import javax.swing.UIManager; |
|
9 |
import javax.swing.UnsupportedLookAndFeelException; |
|
10 |
|
|
11 |
import org.gvsig.crs.gui.panels.wizard.MainPanel; |
|
12 |
|
|
13 |
public class CrsMainPanelTest { |
|
14 |
|
|
15 |
/** |
|
16 |
* @param args |
|
17 |
* @throws UnsupportedLookAndFeelException |
|
18 |
* @throws IllegalAccessException |
|
19 |
* @throws InstantiationException |
|
20 |
* @throws ClassNotFoundException |
|
21 |
*/ |
|
22 |
public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException { |
|
23 |
|
|
24 |
/* |
|
25 |
com.sun.java.swing.plaf.motif.MotifLookAndFeel |
|
26 |
com.sun.java.swing.plaf.windows.WindowsLookAndFeel |
|
27 |
javax.swing.plaf.metal.MetalLookAndFeel |
|
28 |
*/ |
|
29 |
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); |
|
30 |
JFrame frame = new JFrame("Selecciona Sistema de Referencia"); |
|
31 |
//cerrar el formulario |
|
32 |
frame.addWindowListener(new WindowAdapter() { |
|
33 |
public void windowClosing(WindowEvent e) {System.exit(0);} |
|
34 |
}); |
|
35 |
CRSMainPanel content=new CRSMainPanel(); |
|
36 |
//content.setSize(100,100); |
|
37 |
frame.getContentPane().add(content); |
|
38 |
frame.setSize(100, 100); |
|
39 |
|
|
40 |
//colocar en la pantalla |
|
41 |
frame.setLocation(200,0); |
|
42 |
frame.pack(); |
|
43 |
frame.setVisible(true); |
|
44 |
|
|
45 |
} |
|
46 |
} |
|
0 | 47 |
Also available in: Unified diff