Monday, October 3, 2011

Core Java Examples

2 comments:

  1. how to move from one page to another by clicking on menuitem

    ReplyDelete
  2. Hi Aditya,Are you talking about awt& swing.If yes,you can use these steps

    1.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

    ReplyDelete