Home

Company
  Technologies
  Team
  Workflow
 
Services
  Virtual Office
  Fixed Bid
  Portfolio
 
Products
  dhtmlxTree
  dhtmlxGrid
  dhtmlxTreeGrid
  dhtmlxTabbar
  dhtmlxCombo
  dhtmlxVault
  dhtmlxToolbar
  dhtmlxMenu
  AWTX TreeTable
  AWTX JTree
 
F.A.Q.
Download
Contact us
Color Dialog applet

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

Click here to see applet in action.

Visit our download page to get this applet for free.

Questions or comments? Don't hesitate to write us, you are always welcome.
We would like to develop Java applets and applications for you,
just send us your requirements.

Class ColorDialog.ColorDialog

public class ColorDialog
extends Dialog

Variable Index

 o color
 o isOK

Constructor Index

 o ColorDialog(Frame)
 o ColorDialog(Frame, Color)

Variables

 o 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.

 o color
public Color color
Contains color value that was selected in Color Dialog.
Read this variable after constructor calling to get selected color value.

Constructors

 o 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.
 o 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.



© 1998-2007 Scand LLC. Last updated 03/27/07 RSS