| Start | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Creating a GUI Applets could easily be used to create a GUI. They act like a |
||||||||||||
| Minimal Applet A very simple applet draws a rectangle and prints a string something on the screen. The main class of an applet extends from Before Java 1.2 and the introduction of the swing API applets had extended from Applets don't require a main method. The entry point is controlled by the life cycle. To use them, they need to be embedded in a HTML document. This is also the point where their size is defined. |
||||||||||||
| Open links from within the applet You can use the method |
||||||||||||
| Loading images, audio and other resources Java applets are able to load different resources. But since they are running in the web browser of the client you need to make sure that these resources are accessible. Applets are not able to access client resources as the local file system. Load and show an imageLoad and play an audio fileLoad and display a text fileRemarksAn applet is a Java application that normally runs inside a web browser. The basic idea is to interact with the user without the need to interact with the server and transfer information. This concept was very successful around the year 2000 when internet communication was slow and expensive.
|
Read Article
https://develop.horje.com/learn/1434/reference