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