//package server; import javax.swing.JEditorPane; import javax.swing.JFrame; import java.awt.Container; public class CWIcqServerFrame extends JFrame { private Container contentPane ; private JEditorPane pane; private CMenu objMenu; // Menu Bar with all options // Default Constructor for the Frame Controler public CWIcqServerFrame () { super ("CWicq Server Frame"); // method from JFrame parent : Set Exit Operation setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Factory Method Inherited from JFrame parent contentPane = getContentPane(); // initialize menu objMenu = new CMenu(); // mainMenuBar setJMenuBar(objMenu); // Inheritated from JFrame Parent pack(); // From Parent JFrame show(); // ... }; public static void main(String[] args) { try { CWIcqServerFrame cwicq = new CWIcqServerFrame(); } catch (Exception ex) { ex.printStackTrace(); } } }