AWTX Home | Demo | Documentation | Download | Support
Using this applet you can select any color just like in a standard Windows application. This applet works in any browser also on Solaris and Linux
Class ColorDialog.ColorDialog
- public class ColorDialog
- extends Dialog
-
-
-
-
-
(Frame)
-
-
(Frame, Color)
-
isOK
public boolean isOK
-
true if button OK was pressed in Color Dialog,
false otherwise (Cancel or Escape buttons).
Read this variable after constructor calling to see if the user has selected a color or cancelled.
color
public Color color
- Contains color value that was selected in Color Dialog.
Read this variable after constructor calling to get selected color value.
ColorDialog
public ColorDialog(Frame p)
- Constructs a new Color Dialog and displays it in the specified frame.
User can select a color and press Ok or Cancel button to close the dialog.
After calling this constructor read color and isOK variables to get information
about the selected color and the button pressed.
- Parameters:
- p - the frame where to display Color Dialog.
ColorDialog
public ColorDialog(Frame p, Color c)
- Constructs a new Color Dialog with the specified color as default selected color and displays it in the specified frame.
User can select a color and press Ok or Cancel button to close the dialog. After calling this constructor read color and isOK variables to get information about the selected color and the button pressed.
- Parameters:
- p - the frame where to display Color Dialog.
- c - the color to be selected by default when Color Dialog appears.

Questions or comments? Write us, you are always welcome.
Check our other products.
|