root / tags / v1_0_2_Build_902 / extensions / extGeoreferencing / src-test / TestFrame.java @ 13136
History | View | Annotate | Download (838 Bytes)
1 |
import java.awt.event.ComponentEvent; |
---|---|
2 |
import java.awt.event.ComponentListener; |
3 |
|
4 |
import javax.swing.JFrame; |
5 |
|
6 |
import org.gvsig.georeferencing.gui.selectPoints.DataPointPanel; |
7 |
|
8 |
|
9 |
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 |
|
22 |
|
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 |
} |