1 DocCustomComponent
werwolf2303 edited this page 2023-08-23 18:48:39 +02:00

CustomComponent

Display any Swing component inside the setup


Example

CustomComponent custom = new CustomComponent(); //Create customcomponent instance
custom.addComponent(new JButton());

Available methods

Public

  • getName() -> Returns "CustomComponent"
  • addComponent(java.awt.Component: component) -> Adds a component to display
  • addComponent(java.awt.Component: component, Object: layout) -> Adds a component to display

Private

  • drawable() -> Returns the internal JPanel
  • init() -> Used inside Setup class
  • nowVisible() -> Used inside Setup class
  • onLeave() -> Used inside Setup class
  • giveComponents(...) -> Used inside Setup class