IntroPanel -...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Authors: Lewis/Loftus // // Solution to Programming Project 9.1 // // Represents the introduction panel for the LayoutDemo program. //******************************************************************** / import java.awt.*; import javax.swing.*; i public class IntroPanel extends JPanel { //----------------------------------------------------------------- // Sets up this panel with two labels.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //-----------------------------------------------------------------public IntroPanel() { setBackground (; setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JLabel l1 = new JLabel ("Layout Manger Demonstration"); JLabel l2 = new JLabel ("Choose a tab to see an example of " + "a layout manager."); add(Box.createVerticalGlue()); add (l1); add(Box.createVerticalGlue()); add (l2); } }...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Ask a homework question - tutors are online