root / trunk / extensions / extRasterTools-SE / src-test / org / gvsig / rasterTools / properties / panels / TestBrightnessAndContrastPanel.java @ 10886
History | View | Annotate | Download (845 Bytes)
1 |
package org.gvsig.rasterTools.properties.panels; |
---|---|
2 |
|
3 |
import javax.swing.JFrame; |
4 |
|
5 |
import org.gvsig.gui.beans.table.exceptions.NotInitializeException; |
6 |
import org.gvsig.rastertools.properties.panels.EnhancedBrightnessContrastPanel; |
7 |
|
8 |
public class TestBrightnessAndContrastPanel{ |
9 |
private int w = 200, h = 220; |
10 |
private JFrame frame=new JFrame(); |
11 |
private EnhancedBrightnessContrastPanel slider = null; |
12 |
|
13 |
public TestBrightnessAndContrastPanel() throws NotInitializeException{ |
14 |
slider = new EnhancedBrightnessContrastPanel();
|
15 |
frame.getContentPane().add(slider); |
16 |
frame.setSize(w, h); |
17 |
frame.setVisible(true);
|
18 |
} |
19 |
|
20 |
public static void main(String[] args) { |
21 |
try{
|
22 |
TestBrightnessAndContrastPanel slider = new TestBrightnessAndContrastPanel();
|
23 |
}catch(NotInitializeException ex){
|
24 |
System.out.println("Tabla no inicializada"); |
25 |
} |
26 |
} |
27 |
} |