root / trunk / libraries / libUIComponent / src-test / org / gvsig / gui / beans / openFile / TestOpenFile.java @ 10741
History | View | Annotate | Download (1.14 KB)
1 |
package org.gvsig.gui.beans.openFile; |
---|---|
2 |
|
3 |
import java.awt.event.ComponentEvent; |
4 |
import java.awt.event.ComponentListener; |
5 |
|
6 |
import javax.swing.JFrame; |
7 |
|
8 |
import org.gvsig.gui.beans.coordDataInput.CoordDataInputContainer; |
9 |
import org.gvsig.gui.beans.dataInput.DataInputContainer; |
10 |
|
11 |
public class TestOpenFile implements ComponentListener{ |
12 |
private int w = 510, h = 90; |
13 |
private JFrame frame = new JFrame(); |
14 |
private OpenFileContainer open = null; |
15 |
|
16 |
public TestOpenFile(){
|
17 |
open = new OpenFileContainer();
|
18 |
open.setComponentSize(w,h); |
19 |
open.addComponentListener(this);
|
20 |
frame.getContentPane().add(open); |
21 |
frame.setSize(w, h); |
22 |
frame.setVisible(true);
|
23 |
|
24 |
} |
25 |
|
26 |
public static void main(String[] args){ |
27 |
TestOpenFile tof = new TestOpenFile();
|
28 |
} |
29 |
|
30 |
public void componentHidden(ComponentEvent e) { |
31 |
// TODO Auto-generated method stub
|
32 |
|
33 |
} |
34 |
|
35 |
public void componentMoved(ComponentEvent e) { |
36 |
// TODO Auto-generated method stub
|
37 |
|
38 |
} |
39 |
|
40 |
public void componentResized(ComponentEvent e) { |
41 |
this.open.setComponentSize(this.frame.getWidth() - 10, this.frame.getHeight() -50); |
42 |
|
43 |
} |
44 |
|
45 |
public void componentShown(ComponentEvent e) { |
46 |
// TODO Auto-generated method stub
|
47 |
|
48 |
} |
49 |
} |