svn-gvsig-desktop / trunk / libraries / libUIComponent / src-test / org / gvsig / gui / beans / labelslidertext / TestLabelSliderTextTable.java @ 10741
History | View | Annotate | Download (1.28 KB)
1 |
package org.gvsig.gui.beans.labelslidertext; |
---|---|
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 TestLabelSliderTextTable implements ComponentListener{ |
11 |
private int w = 375, h = 150; |
12 |
private JFrame frame=new JFrame(); |
13 |
private LabelSliderTextContainer slider = null; |
14 |
|
15 |
public TestLabelSliderTextTable() throws NotInitializeException{ |
16 |
slider = new LabelSliderTextContainer(0, 255, 255, true, "Longaniza de nombre"); |
17 |
slider.setDecimal(false);
|
18 |
slider.setBorder("Cabecera");
|
19 |
|
20 |
frame.addComponentListener(this);
|
21 |
|
22 |
frame.getContentPane().add(slider); |
23 |
frame.setSize(w, h); |
24 |
frame.setVisible(true);
|
25 |
} |
26 |
|
27 |
public static void main(String[] args) { |
28 |
try{
|
29 |
TestLabelSliderTextTable slider = new TestLabelSliderTextTable();
|
30 |
}catch(NotInitializeException ex){
|
31 |
System.out.println("Tabla no inicializada"); |
32 |
} |
33 |
} |
34 |
|
35 |
public void componentHidden(ComponentEvent e) { |
36 |
// TODO Auto-generated method stub
|
37 |
|
38 |
} |
39 |
|
40 |
public void componentMoved(ComponentEvent e) { |
41 |
// TODO Auto-generated method stub
|
42 |
|
43 |
} |
44 |
|
45 |
public void componentResized(ComponentEvent e) { |
46 |
|
47 |
} |
48 |
|
49 |
public void componentShown(ComponentEvent e) { |
50 |
// TODO Auto-generated method stub
|
51 |
|
52 |
} |
53 |
} |