root / trunk / libraries / libUIComponent / src-test / org / gvsig / gui / beans / graphic / TestGraphic.java @ 10981
History | View | Annotate | Download (592 Bytes)
1 |
package org.gvsig.gui.beans.graphic; |
---|---|
2 |
|
3 |
import javax.swing.JFrame; |
4 |
|
5 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
6 |
|
7 |
public class TestGraphic { |
8 |
private JFrame frame=new JFrame(); |
9 |
private GraphicContainer graphic = null; |
10 |
|
11 |
public TestGraphic() throws NotInitializeException{ |
12 |
graphic = new GraphicContainer(true); |
13 |
frame.getContentPane().add(graphic); |
14 |
frame.setSize(500, 300); |
15 |
frame.show(); |
16 |
} |
17 |
|
18 |
public static void main(String[] args) { |
19 |
try{
|
20 |
new TestGraphic();
|
21 |
} catch (NotInitializeException ex){
|
22 |
System.out.println("Tabla no inicializada"); |
23 |
} |
24 |
} |
25 |
} |