root / trunk / extensions / extGeoreferencing / src-test / TestFrame.java @ 11445
History | View | Annotate | Download (838 Bytes)
1 | 4830 | nacho | import java.awt.event.ComponentEvent; |
---|---|---|---|
2 | import java.awt.event.ComponentListener; |
||
3 | |||
4 | import javax.swing.JFrame; |
||
5 | |||
6 | 5217 | nacho | import org.gvsig.georeferencing.gui.selectPoints.DataPointPanel; |
7 | 4830 | nacho | |
8 | 5217 | nacho | |
9 | 4830 | nacho | public class TestFrame extends JFrame implements ComponentListener{ |
10 | |||
11 | public void componentHidden(ComponentEvent arg0) { |
||
12 | |||
13 | } |
||
14 | public void componentMoved(ComponentEvent arg0) { |
||
15 | |||
16 | } |
||
17 | public void componentResized(ComponentEvent arg0) { |
||
18 | System.out.println(this.getSize().getWidth()+" "+this.getSize().getHeight()); |
||
19 | } |
||
20 | public void componentShown(ComponentEvent arg0) { |
||
21 | 8283 | nacho | |
22 | 4830 | nacho | |
23 | } |
||
24 | public TestFrame(){
|
||
25 | this.addComponentListener(this); |
||
26 | this.setSize(353,158); |
||
27 | DataPointPanel tbp = new DataPointPanel();
|
||
28 | this.getContentPane().add(tbp);
|
||
29 | this.show();
|
||
30 | } |
||
31 | /**
|
||
32 | * @param args
|
||
33 | */
|
||
34 | public static void main(String[] args) { |
||
35 | TestFrame f = new TestFrame();
|
||
36 | } |
||
37 | |||
38 | } |