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

AcceptComponent

Displays an agreement

HTML support same as HTMLComponent


Example

AcceptComponent accept = new AcceptComponent(); //Create instance of AcceptComponent
1. accept.load("Hello World"); //Set html to display
2. accept.load(new URL("http://some.site/license.txt")); //Load html of webpage

Available methods

Public

  • getName() -> Returns "AcceptComponent"
  • load(String: html) -> Set html to display
  • load(URL: url) -> Display website
  • (Deprecated)setText(String: text) -> same as load(String: html)

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