Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
Swing's JApplet can contain a menubar, whilst an Applet can NOT.
JComponents can have borders.
Many Swing components can have embedded pictures, because they're subclasses of Container.
JComponents can have tooltips.
JTextField allows right-aligned entry !
The content-pane's border is used as insets. You can use createEmptyBorder to have insets of the component's own colour.
Arguments are : top, left, bottom, right.
There's a invisible glass pane on top of the content-pane. A separate layer.
This one is only painted, when made visible, but it could also capture mouse events, for instance to drag a picture over the contentpane.
Call JComponent's method first.
There are several kinds of borders :
Create methods for these and others can be found in the javax.swing.BorderFactory class.