root / trunk / libraries / libUIComponent_praster / src-test / org / gvsig / gui / beans / textincreaser / TestTextIncreaser.java @ 8026
History | View | Annotate | Download (774 Bytes)
1 |
package org.gvsig.gui.beans.textincreaser; |
---|---|
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.table.exceptions.NotInitializeException; |
9 |
|
10 |
public class TestTextIncreaser{ |
11 |
private int w = 200, h = 200; |
12 |
private JFrame frame=new JFrame(); |
13 |
private TextIncreaserContainer tic1;
|
14 |
|
15 |
public TestTextIncreaser() throws NotInitializeException{ |
16 |
tic1 = new TextIncreaserContainer(70, 0, 10, 0, true); |
17 |
|
18 |
frame.getContentPane().add(tic1); |
19 |
frame.setSize(w, h); |
20 |
frame.setVisible(true);
|
21 |
} |
22 |
|
23 |
public static void main(String[] args) { |
24 |
try{
|
25 |
TestTextIncreaser tti = new TestTextIncreaser();
|
26 |
}catch(NotInitializeException ex){
|
27 |
System.out.println("Tabla no inicializado"); |
28 |
} |
29 |
} |
30 |
|
31 |
} |