Link to home
Start Free TrialLog in
Avatar of morsa804tons

asked on

Swing application


i'm new in developing swing applications and now i don't know how to handle my new development. My app will display a window with a JLabel, a JTextfield and a button. When user clicks on button, a new window will be displayed showing a list of JLabels kept from a bbdd query resultset. From this window, user could accept results showed and access to a new window or go back to the first window.

My question is: Is better to do all of this transitions in the same JFrame (removing elements or JPanels inside it) or is more practic to jump from one Jframe to another, removing the old one? What is most used in swing developing?

Thanks in advance!
Avatar of CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think doing all the transitions in the same JFrame is very troublesome.

I've done some Swing development in the beginning of this year. I used one large JFrame, and each new screen was a JInternalFrame inside the JFrame. It made development much simpler.