Package ringdb.ui

Source Code of ringdb.ui.MainWindow

package ringdb.ui;

import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;

import ringdb.ui.menu.MenuBar;

public class MainWindow extends JFrame {
 
  /** Version ID */
    private static final long serialVersionUID = -2113565525378935184L;

    final JDesktopPane m_Desktop;
   
  public MainWindow() {
      super("RingDB");
      setExtendedState(JFrame.MAXIMIZED_BOTH);
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      setJMenuBar(new MenuBar(this));
     
      m_Desktop = new JDesktopPane();
      setContentPane(m_Desktop);
    }
 
  public void addFrame(final JInternalFrame pr_Frame) {
    m_Desktop.add(pr_Frame);
  }
 
  public void removeFrame(final JInternalFrame pr_Frame) {
    m_Desktop.remove(pr_Frame);
  }
 
}
TOP

Related Classes of ringdb.ui.MainWindow

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.