Package fr.aston.gestionconges.presentation

Source Code of fr.aston.gestionconges.presentation.NewJFrame

package fr.aston.gestionconges.presentation;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JWindow;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class NewJFrame extends javax.swing.JFrame {
  private JWindow jWindow1;
  private JFrame jFrame1;

  /**
  * Auto-generated main method to display this JFrame
  */
  public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        NewJFrame inst = new NewJFrame();
        inst.setLocationRelativeTo(null);
        inst.setVisible(true);
      }
    });
  }
 
  public NewJFrame() {
    super();
    initGUI();
  }
 
  private void initGUI() {
    try {
      setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
      {
        jWindow1 = new JWindow();
        getContentPane().add(getJWindow1(), BorderLayout.CENTER);
        {
          jFrame1 = new JFrame();
          jWindow1.getContentPane().add(getJFrame1(), BorderLayout.CENTER);
        }
      }
      pack();
      setSize(400, 300);
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
 
  public JWindow getJWindow1() {
    return jWindow1;
  }
 
  public JFrame getJFrame1() {
    return jFrame1;
  }

}
TOP

Related Classes of fr.aston.gestionconges.presentation.NewJFrame

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.