The simplest component is a Label object |
Adding a label to a GUI is like drawing a string--the only difference is that labels generate events (which we'll have more to say about later) |
To add a label to an applet, type: add( new Label( "This is a label!" ) ); |
It's that easy! |