Monday, October 3, 2011
Core Java Examples
Subscribe to:
Post Comments (Atom)
how to move from one page to another by clicking on menuitem
ReplyDeleteHi Aditya,Are you talking about awt& swing.If yes,you can use these steps
ReplyDelete1.Add MenuItem to your awt program.Your class should implement ActionListener
2.add listener to it menuItem.addActionListener(this);
3.define actionPerformed() to it
public void actionPerformed(ActionEvent e) {
MyFrame fr=New MyFrame();
fr.setVisible(true);
}
4.If time permits,i will give the complete code.
Follow this site to get continous updates