Class ThinletDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ThinletDialog extends Dialog
ThinletDialog is a modal double buffered dialog containing a thinlet component.
Author:
Dirk Moebius
See Also:
  • Constructor Details

    • ThinletDialog

      public ThinletDialog(Frame owner)
    • ThinletDialog

      public ThinletDialog(Frame owner, String title)
    • ThinletDialog

      public ThinletDialog(Dialog owner)
    • ThinletDialog

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

    • setContent

      public void setContent(thinlet.Thinlet content)
    • getContent

      public thinlet.Thinlet getContent()
    • update

      public void update(Graphics g)
      Call the paint method to redraw this component without painting a background rectangle.
      Overrides:
      update in class Container
    • paint

      public void paint(Graphics g)
      Create a double buffer if needed, the thinlet component paints the content.
      Overrides:
      paint in class Window
    • doLayout

      public void doLayout()
      Clear the double buffer image (because the frame has been resized), the overriden method lays out its components (centers the thinlet component).
      Overrides:
      doLayout in class Container
    • addImpl

      protected void addImpl(Component comp, Object constraints, int index)
      Redirects all calls to add(...) to setContent(Thinlet).
      Overrides:
      addImpl in class Container