Java Swing - What's the proper way of doing a stage based GUI? -


i'm developing menu of application , know what's proper way of coding "stage based menu". mean stage based menu that, user clicks button, entire interface changes next "stage". here pictures designed in photoshop in order explain idea: main menu

admin menu

first picture first stage , second picture second. each round looking thing jbutton

so far got main menu (fist picture) made on eclipse using windowbuilder, made jpanel , instantiate on window class.

my idea have event listener listen clicks on each button , once triggered, have jpanel variable on frame change next "stage". so wondering if proper way of doing or there better ways?

you use card layout make easy swap panels.

check out section swing tutorial on how use card layout more information , examples.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -