java - How to create dynamic wizard? -


i making project gui. thing is, have button , need after clicking button need change frame layout. example, when installing program , click "next" button, frame layout changes , can see different content. basicly, dynamic wizard. have tried use frame, opens in window , not want. want open in same window. thing have tried set visibility of these components don't want displayed false, find unprofessional , overlook in making desing, when have components on themselfs.

so guys have idea? thank you.

most of times wizard gui, should have jframe , set of jpanels. in each step can pass shared data constructor arguments each panel, , when making 1 of them invisible , make 1 visible, can date previous step panel , pass next step panel(if needed).

it common panels extend jpanel , have argument in constructor(s). use these data initializing panel , managing state of overall progress.

there no total plan situations. should decide best fit case.

try not have multiple jframes.

hope helpful.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -