java - Retrieve Values from multiple JFrame to a single JFrame -


i have 5 jframes in application , want values 5 jframes sent single jframe. , process have go 1 frame , value entered should not lost , must visible @ end of process.

easy example is,

  1. i key in name in first frame,
  2. then key in address in second frame,
  3. then mobile number in third frame

and on till last frame want keyed in details in previous forms in final frame display data in jtextfields. possible? because if single form, know how it. when multiple forms in situation lost. please help.

this has nothing swing or jframes , general issue of getting information 1 object another. yes it's possible -- give classes wish extract information "getter" methods, , call them when want information. if want gather information in event-dependent fashion, need have 1 class listening state changes brought on events in other classes. propertychangelistener can work this.

or if use modal jdialog windows instead of jframes, notified when dialog has returned , no longer visible, since calling code's program flow resumes right after told dialog become visible.

next can discuss whether having 5 separate jframes idea or not. i'm guessing know opinion on this, else wouldn't have mentioned subject.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -