root / tags / v1_1_Build_1013 / extensions / extRasterTools / src-test / TestPanSharpeningPanel.java @ 13521
History | View | Annotate | Download (1.08 KB)
1 |
import java.awt.event.ComponentEvent; |
---|---|
2 |
import java.awt.event.ComponentListener; |
3 |
|
4 |
import javax.swing.JFrame; |
5 |
|
6 |
import org.gvsig.rasterTools.pansharpening.ui.PanSharpeningPanel; |
7 |
|
8 |
public class TestPanSharpeningPanel implements ComponentListener{ |
9 |
|
10 |
JFrame frame = new JFrame(); |
11 |
PanSharpeningPanel panel = null;
|
12 |
|
13 |
|
14 |
public TestPanSharpeningPanel(){
|
15 |
panel = new PanSharpeningPanel();
|
16 |
frame.setSize(475,279); |
17 |
panel.setComponentSize(this.frame.getWidth() - 10, this.frame.getHeight() - 40); |
18 |
frame.getContentPane().add(panel); |
19 |
frame.addComponentListener(this);
|
20 |
frame.show(); |
21 |
} |
22 |
|
23 |
public static void main(String[] args){ |
24 |
TestPanSharpeningPanel tpsp = new TestPanSharpeningPanel();
|
25 |
} |
26 |
|
27 |
public void componentHidden(ComponentEvent e) { |
28 |
// TODO Auto-generated method stub
|
29 |
|
30 |
} |
31 |
|
32 |
public void componentMoved(ComponentEvent e) { |
33 |
// TODO Auto-generated method stub
|
34 |
|
35 |
} |
36 |
|
37 |
public void componentResized(ComponentEvent e) { |
38 |
panel.setComponentSize(this.frame.getWidth() - 10, this.frame.getHeight() - 40); |
39 |
|
40 |
} |
41 |
|
42 |
public void componentShown(ComponentEvent e) { |
43 |
// TODO Auto-generated method stub
|
44 |
|
45 |
} |
46 |
} |