It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Java Forum

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

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

Postby sasi on Fri May 04, 2007 8:29 am

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.
sasi
 
Posts: 13
Joined: Mon Apr 23, 2007 1:10 pm

Postby stultuske on Tue Jun 05, 2007 10:01 am

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
stultuske
 
Posts: 0
Joined: Tue Jun 05, 2007 9:53 am


Who is online

Users browsing this forum: No registered users and 0 guests