/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PLCalcApplet.java
 *
 * Created on Feb 7, 2009, 3:32:01 PM
 */
package plcalc;

import javax.swing.*;
import java.awt.*;

/**
 *
 * @author lutusp
 */
public class PLCalcApplet extends java.applet.Applet {

    PLCalcMainPanel mainPanel;

    /** Initializes the applet PLCalcApplet */
    public void init() {
        try {
            java.awt.EventQueue.invokeAndWait(new Runnable() {

                public void run() {
                    try {
                        // Set to use system-specific L&F
                        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                    } catch (Exception e) {
                        // handle exception
                    }
                    initComponents();
                    mainPanel = new PLCalcMainPanel();
                    GridBagConstraints gridBagConstraints = new GridBagConstraints();
                    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
                    gridBagConstraints.weightx = 1.0;
                    gridBagConstraints.weighty = 1.0;
                    //getContentPane().
                    add(mainPanel, gridBagConstraints);
                //pack();
                }
            });
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

    /** This method is called from within the init() method to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setLayout(new java.awt.GridBagLayout());
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables
}
