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);
}
}