Class ColorChooser

java.lang.Object
thinletcommons.ColorChooser

public class ColorChooser extends Object
A Thinlet color chooser dialog.

The dialog is modal and blocks the calling frame/dialog. It is therefore displayed in a separate window.

Author:
Dirk Moebius
  • Constructor Details

    • ColorChooser

      public ColorChooser(Frame owner, String title)
    • ColorChooser

      public ColorChooser(Dialog owner, String title)
  • Method Details

    • show

      public void show()
      Show the modal dialog. This halts the application until the user dismisses the dialog.
    • setSelectedColor

      public void setSelectedColor(Color color)
    • getSelectedColor

      public Color getSelectedColor()
    • init

      public void init(Object sl_red, Object sl_green, Object sl_blue, Object sb_red, Object sb_green, Object sb_blue, Object tf_hue, Object tf_saturation, Object tf_brightness, Object pb_hue, Object pb_saturation, Object pb_brightness, Object rgb_label)
      Thinlet callback.
    • sliderChanged

      public void sliderChanged(int value, Object spinbox)
      Thinlet callback.
    • spinboxChanged

      public void spinboxChanged(String text, Object slider)
      Thinlet callback.
    • ok

      public void ok()
      Thinlet callback.
    • close

      public void close()
      Thinlet callback.