home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Sample.bin / MailDocument.java < prev    next >
Text File  |  1998-11-02  |  4KB  |  74 lines

  1. /*
  2.         A basic implementation of the JInternalFrame class.
  3. */
  4.  
  5. import java.awt.*;
  6. import com.sun.java.swing.*;
  7.  
  8. public class MailDocument extends com.sun.java.swing.JInternalFrame
  9. {
  10.     static int messageCount=0;
  11.     public MailDocument()
  12.     {
  13.         // This code is automatically generated by Visual Cafe when you add
  14.         // components to the visual environment. It instantiates and initializes
  15.         // the components. To modify the code, only use code syntax that matches
  16.         // what Visual Cafe can generate, or Visual Cafe may be unable to back
  17.         // parse your Java file into its visual environment.
  18.         //{{INIT_CONTROLS
  19.         setIconifiable(true);
  20.         setMaximizable(true);
  21.         setTitle("Untitled Message ");
  22.         setResizable(true);
  23.         setClosable(true);
  24.         setDefaultCloseOperation(com.sun.java.swing.JFrame.DISPOSE_ON_CLOSE);
  25.         getContentPane().setLayout(new BorderLayout(0,0));
  26.         setSize(523,348);
  27.         JScrollPane1.setOpaque(true);
  28.         getContentPane().add("Center", JScrollPane1);
  29.         JScrollPane1.setBounds(0,57,523,291);
  30.         JTextArea1.setRows(15);
  31.         JTextArea1.setColumns(45);
  32.         JScrollPane1.getViewport().add(JTextArea1);
  33.         JTextArea1.setBounds(0,0,520,288);
  34.         GridBagLayout gridBagLayout;
  35.         gridBagLayout = new GridBagLayout();
  36.         JPanel1.setLayout(new GridBagLayout());
  37.         getContentPane().add("North", JPanel1);
  38.         JPanel1.setBounds(0,0,523,57);
  39.         JLabel1.setText("To:");
  40.         JPanel1.add(JLabel1, new com.symantec.itools.awt.GridBagConstraintsD(0,0,1,1,0.0,0.0,java.awt.GridBagConstraints.EAST,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,5),0,0));
  41.         JLabel1.setBounds(45,2,17,15);
  42.         JTextField1.setColumns(40);
  43.         JPanel1.add(JTextField1, new com.symantec.itools.awt.GridBagConstraintsD(1,0,1,1,0.0,0.0,java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
  44.         JTextField1.setBounds(67,0,440,19);
  45.         JLabel2.setText("Subject:");
  46.         JPanel1.add(JLabel2, new com.symantec.itools.awt.GridBagConstraintsD(0,1,1,1,0.0,0.0,java.awt.GridBagConstraints.EAST,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,5),0,0));
  47.         JLabel2.setBounds(16,21,46,15);
  48.         JTextField2.setColumns(40);
  49.         JPanel1.add(JTextField2, new com.symantec.itools.awt.GridBagConstraintsD(1,1,1,1,0.0,0.0,java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
  50.         JTextField2.setBounds(67,19,440,19);
  51.         JLabel3.setText("cc:");
  52.         JPanel1.add(JLabel3, new com.symantec.itools.awt.GridBagConstraintsD(0,2,1,1,0.0,0.0,java.awt.GridBagConstraints.EAST,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,5),0,0));
  53.         JLabel3.setBounds(45,40,17,15);
  54.         JTextField3.setColumns(40);
  55.         JPanel1.add(JTextField3, new com.symantec.itools.awt.GridBagConstraintsD(1,2,1,1,0.0,0.0,java.awt.GridBagConstraints.CENTER,java.awt.GridBagConstraints.NONE,new Insets(0,0,0,0),0,0));
  56.         JTextField3.setBounds(67,38,440,19);
  57.         //}}
  58.         
  59.         setTitle(getTitle()+ ++messageCount);
  60.     }
  61.  
  62.     //{{DECLARE_CONTROLS
  63.     com.sun.java.swing.JScrollPane JScrollPane1 = new com.sun.java.swing.JScrollPane();
  64.     com.sun.java.swing.JTextArea JTextArea1 = new com.sun.java.swing.JTextArea();
  65.     com.sun.java.swing.JPanel JPanel1 = new com.sun.java.swing.JPanel();
  66.     com.sun.java.swing.JLabel JLabel1 = new com.sun.java.swing.JLabel();
  67.     com.sun.java.swing.JTextField JTextField1 = new com.sun.java.swing.JTextField();
  68.     com.sun.java.swing.JLabel JLabel2 = new com.sun.java.swing.JLabel();
  69.     com.sun.java.swing.JTextField JTextField2 = new com.sun.java.swing.JTextField();
  70.     com.sun.java.swing.JLabel JLabel3 = new com.sun.java.swing.JLabel();
  71.     com.sun.java.swing.JTextField JTextField3 = new com.sun.java.swing.JTextField();
  72.     //}}
  73.  
  74. }