+ 1
Whats worng with this code ??
class exMenu extends try1 { exMenu (){ setSize (300,300); JMenuBar mB = new JMenuBar (); setJMenuBar (mB); JMenu mFile = new JMenu ("File"); mB.add(mFile); JMenuItem itmNew = new JMenuItem ("New"); JMenuItem itmExit = new JMenuItem ("Exit"); mFile.add(itmNew); mFile.add(itmExit); setVisible (true); public static void main (String [] arts){ new exMenu(); } }
2 Réponses
+ 1
you're not closing the "exMenu" function
+ 1
how??