|
|
Using the JFC/Swing Packages |
This page will cover the use ofJPanel. For now, we provide a list of examples that use panels with different layout managers and one that subclasses
JPanel:
Example Where Described Notes ButtonDemo.javaHow to Use Buttons. A subclass of JPanel. UsesFlowLayout, the default layout manager of a panel.ToolBarDemo.javaHow to Use Toolbar. Shows a panel with three components laid out by BorderLayout.BorderDemo.javaHow to Use Borders. Contains several panels that use GridBagLayout.BoxLayoutDemo.javaHow to Use BoxLayout. Illustrates the use of a panel with Swing's BoxLayoutmanager.LabelDemo.javaHow to Use Labels. Uses a panel whose three components are laid out in a grid by GridLayout.TabbedPaneDemo.javaHow to Use Tabbed panes. A subclass of JPanelthat creates its GUI in its constructor and uses aGridLayout.The JPanel API
[PENDING: Put tables here]
|
|
Using the JFC/Swing Packages |