home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1998 September / dppcpro0998.iso / Rwc / Sybase / Install.exe / samples.z / Choice.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-03-25  |  1014 b   |  37 lines

  1. import java.awt.Component;
  2. import java.awt.Container;
  3. import java.awt.Frame;
  4. import java.awt.Insets;
  5. import java.awt.Panel;
  6.  
  7. public class Choice extends Form_Choice {
  8.    public void init() {
  9.       super.init();
  10.       ((Panel)this).addNotify();
  11.       this.createAppletForm();
  12.    }
  13.  
  14.    public void createAppletForm() {
  15.       try {
  16.          ((Form_Choice)this).create();
  17.       } catch (Exception var1) {
  18.       }
  19.  
  20.    }
  21.  
  22.    public static void main(String[] var0) {
  23.       Choice var1 = new Choice();
  24.       _Choice_frame var2 = new _Choice_frame();
  25.       ((Frame)var2).setResizable(false);
  26.       ((Container)var2).add(var1);
  27.       ((Frame)var2).addNotify();
  28.       Insets var3 = ((Container)var2).getInsets();
  29.       ((Form_Choice)var1).setMainForm(true);
  30.       var1.init();
  31.       ((Component)var1).setLocation(var3.left, var3.top);
  32.       ((Component)var2).setSize(((Container)var1).getPreferredSize());
  33.       ((Component)var1).setSize(((Container)var1).getPreferredSize());
  34.       ((Component)var2).setVisible(true);
  35.    }
  36. }
  37.