Package frontend.dialogs

Source Code of frontend.dialogs.Jif

package frontend.dialogs;

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JTabbedPane;

import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import frontend.controller.Controller;

/**
* @author Foo Inc
*
*/
@SuppressWarnings("serial")
public class Jif extends JFrame {
 
  private Controller m_controller = null;
  public JTabbedPane m_tabbedPane = null;
 
  private Jif() {
    m_controller = new Controller(this);
    initComponents();
  }
 
  public static Jif getInstance() {
    return(new Jif());
  }
 
  private void initComponents() {
    setTitle("JIF");
    setLocationByPlatform(true);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setPreferredSize(new Dimension(800, 600));
   
    setJMenuBar(m_controller.initMenuBar());
   
    m_tabbedPane = new JTabbedPane();
    this.add(m_tabbedPane);
    this.pack();
    this.setVisible(true);
  }
}
TOP

Related Classes of frontend.dialogs.Jif

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.