How to go to another form using java swing forms.....

TOPIC CREATED: 2007-05-04


s

keyboard_arrow_up
0
keyboard_arrow_down


First Post sasi
Posted: 2007-05-04 08:29:30
Hello everybody, kindly tell me how to go to another form from one form means just like in HTML (navigation from one page to another page using <a> anchor tag), so in java(swings) how to be implemented this issue by means of menuitems...

Please respond to this as early as possible.


regards,
sasi.



1 Replies


s

keyboard_arrow_up
0
keyboard_arrow_down


Reply #1 stultuske
Posted: 2007-06-05 10:01:03
whell, let say you have a main-frame called mFrame and a called-frame, cFrame.

if you try to call cFrame from mFrame, and you want to let mFrame dissappear, use:

cFrame a = new cFrame();
this.dispose();

if you want mFrame to remain visible:

cFrame a = new cFrame();l






JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!




MENU
Advertising