You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
439 B
22 lines
439 B
8 years ago
|
package sig;
|
||
|
|
||
|
import java.awt.Color;
|
||
|
import java.awt.Dimension;
|
||
|
|
||
|
import javax.swing.JColorChooser;
|
||
|
import javax.swing.JPanel;
|
||
|
|
||
|
public class ColorPanel extends JPanel{
|
||
|
public ColorPanel() {
|
||
|
|
||
|
}
|
||
|
|
||
|
public Color getBackgroundColor() {
|
||
|
return JColorChooser.showDialog(this, "Background Color Picker", Color.CYAN);
|
||
|
}
|
||
|
|
||
|
public Dimension getPreferredSize() {
|
||
|
return new Dimension(640,480);
|
||
|
}
|
||
|
}
|