Revision 12716 trunk/extensions/extRasterTools-SE/src-test-ui/org/gvsig/rastertools/colortable/TestColorTablePanel.java
TestColorTablePanel.java | ||
---|---|---|
18 | 18 |
*/ |
19 | 19 |
package org.gvsig.rastertools.colortable; |
20 | 20 |
|
21 |
import java.awt.event.ActionEvent; |
|
22 |
import java.awt.event.ActionListener; |
|
23 |
|
|
24 | 21 |
import javax.swing.JFrame; |
25 | 22 |
|
26 | 23 |
import org.gvsig.rastertools.colortable.ui.ColorTablePanel; |
... | ... | |
30 | 27 |
* @version 17/04/2007 |
31 | 28 |
* @author BorSanZa - Borja S?nchez Zamorano (borja.sanchez@iver.es) |
32 | 29 |
*/ |
33 |
public class TestColorTablePanel implements ActionListener {
|
|
30 |
public class TestColorTablePanel { |
|
34 | 31 |
private JFrame frame = new JFrame(); |
35 | 32 |
|
36 | 33 |
public TestColorTablePanel() { |
... | ... | |
43 | 40 |
} |
44 | 41 |
|
45 | 42 |
private void initialize() { |
46 |
// JButton boton = new JButton("Crear ventana"); |
|
47 |
// boton.addActionListener(this); |
|
48 |
|
|
49 | 43 |
ColorTablePanel ctp = new ColorTablePanel(); |
50 | 44 |
frame.setContentPane(ctp); |
51 | 45 |
|
52 |
// frame.setContentPane(boton);
|
|
46 |
frame.setSize(new java.awt.Dimension(660, 450));
|
|
53 | 47 |
frame.setResizable(true); |
54 | 48 |
frame.setTitle("Tablas de color"); |
55 | 49 |
frame.setVisible(true); |
56 | 50 |
frame.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); |
57 |
frame.pack(); |
|
58 | 51 |
} |
59 |
|
|
60 |
public void actionPerformed(ActionEvent e) { |
|
61 |
JFrame frame2 = new JFrame(); |
|
62 |
frame2.setSize(new java.awt.Dimension(600, 450)); |
|
63 |
ColorTablePanel ctp = new ColorTablePanel(); |
|
64 |
frame2.setContentPane(ctp); |
|
65 |
frame2.setResizable(true); |
|
66 |
frame2.setTitle("Tablas de color"); |
|
67 |
frame2.setVisible(true); |
|
68 |
} |
|
69 | 52 |
} |
Also available in: Unified diff