Creating an Applet User Interface |
[UNDER CONSTRUCTION]Almost all applets have a graphical user interface (GUI). The Creating a User Interface trail gives many examples of applet GUIs. This page discusses the few issues that are particular to applet GUIs:
What else?
- Each Applet is a Panel.
- Applets are visible, so you must call validate() after adding components to them. Otherwise, your components might not appear onscreen.
- File saving -- most applet viewers won't let you do it.
- Time to load custom classes? Ways of cutting it down? (performance section?)
- Load images using the applet getImage() method.
- Using getDocumentBase() and getCodeBase().
Creating an Applet User Interface |