root / trunk / extensions / extGeoreferencing / src-test / TestFrame.java @ 5217
History | View | Annotate | Download (911 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 |
// TODO Auto-generated method stub
|
13 |
|
14 |
} |
15 |
public void componentMoved(ComponentEvent arg0) { |
16 |
|
17 |
} |
18 |
public void componentResized(ComponentEvent arg0) { |
19 |
System.out.println(this.getSize().getWidth()+" "+this.getSize().getHeight()); |
20 |
} |
21 |
public void componentShown(ComponentEvent arg0) { |
22 |
// TODO Auto-generated method stub
|
23 |
|
24 |
} |
25 |
public TestFrame(){
|
26 |
this.addComponentListener(this); |
27 |
this.setSize(353,158); |
28 |
DataPointPanel tbp = new DataPointPanel();
|
29 |
this.getContentPane().add(tbp);
|
30 |
this.show();
|
31 |
} |
32 |
/**
|
33 |
* @param args
|
34 |
*/
|
35 |
public static void main(String[] args) { |
36 |
TestFrame f = new TestFrame();
|
37 |
} |
38 |
|
39 |
} |