~ubuntu-branches/ubuntu/trusty/netbeans/trusty

« back to all changes in this revision

Viewing changes to form/src/org/netbeans/modules/form/resources/templates/SwingForms/JApplet_java

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
ImportĀ upstreamĀ versionĀ 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * __NAME__.java
 
3
 *
 
4
 * Created on __DATE__, __TIME__
 
5
 */
 
6
 
 
7
package Templates.GUIForms;
 
8
 
 
9
/**
 
10
 *
 
11
 * @author  __USER__
 
12
 */
 
13
public class JApplet extends javax.swing.JApplet {
 
14
 
 
15
    /** Initializes the applet __NAME__ */
 
16
    public void init() {
 
17
        try {
 
18
            java.awt.EventQueue.invokeAndWait(new Runnable() {
 
19
                public void run() {
 
20
                    initComponents();
 
21
                }
 
22
            });
 
23
        } catch (Exception ex) {
 
24
            ex.printStackTrace();
 
25
        }
 
26
    }
 
27
 
 
28
    /** This method is called from within the init() method to
 
29
     * initialize the form.
 
30
     * WARNING: Do NOT modify this code. The content of this method is
 
31
     * always regenerated by the Form Editor.
 
32
     */
 
33
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
 
34
    private void initComponents() {
 
35
 
 
36
        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
 
37
        getContentPane().setLayout(layout);
 
38
        layout.setHorizontalGroup(
 
39
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 
40
            .add(0, 400, Short.MAX_VALUE)
 
41
        );
 
42
        layout.setVerticalGroup(
 
43
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
 
44
            .add(0, 300, Short.MAX_VALUE)
 
45
        );
 
46
    }
 
47
    // </editor-fold>//GEN-END:initComponents
 
48
 
 
49
 
 
50
    // Variables declaration - do not modify//GEN-BEGIN:variables
 
51
    // End of variables declaration//GEN-END:variables
 
52
 
 
53
}