FileDocCategorySizeDatePackage
TestFrame.javaAPI DocExample2097Sat Sep 12 03:01:00 BST 1998borland.samples.beans.customizer

TestFrame

public class TestFrame extends JFrame

Fields Summary
JPanel
jPanel1
DateBean
db
BorderLayout
borderLayout1
Constructors Summary
public TestFrame()


    
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);          
    try  {
      jbInit();
    }
    catch (Exception e) {
      e.printStackTrace();
    }                                 
  
Methods Summary
private voidjbInit()

    this.setTitle("Date Bean");
    db.setUseMonthString(true);
    db.setStyle(DateBean.MONTH_DAY_YEAR);
    this.getContentPane().setLayout(borderLayout1);
    this.getContentPane().add(jPanel1, BorderLayout.CENTER);
    jPanel1.add(db, null);
  
public static voidmain(java.lang.String[] args)

    TestFrame t = new TestFrame();
    t.pack();
    t.show();
  
protected voidprocessWindowEvent(java.awt.event.WindowEvent e)

    super.processWindowEvent(e);
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
      System.exit(0);
    }