FileDocCategorySizeDatePackage
OldTestMoreInfoPanel.javaAPI DocExample1168Mon Jan 09 11:01:58 GMT 2006None

OldTestMoreInfoPanel

public class OldTestMoreInfoPanel extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        JFrame frame = new JFrame();
        JLabel label =
            new JLabel ("This is a simple JLabel as the basic contents");
        JTextArea area =
            new JTextArea ("These are the contents of the more info " + 
                           "component.  They're made visible by clicking " +
                           "on the little triangle component, which " +
                           "catches the event and makes the component " +
                           "visible or invisible, based on its previous " +
                           "state",
                           5, 35);
        area.setLineWrap (true);
        area.setWrapStyleWord (true);
        JScrollPane scroller =
            new JScrollPane (area,
                             ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,
                             ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
        MoreInfoPanel mip = new MoreInfoPanel (label, scroller);
        frame.getContentPane().add (mip);
        frame.pack();
        frame.setVisible(true);