Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Morning guys.
I would like to know if it's possible to use one Jframe for many purposes.
For example, if i click on addnew button, the frame titled newclient open; and when i click edit button, the same frame open but a different title editclient.
the both frames are similar except the title and the save and edit button.

thanks. kind regards
Posted

1 solution

You need to use Panels. You can switch the Panel.

When you create a Application ontop of the visual components you'll have much more otpions.

Also please think about using a Framework - there are some out there that help you.
Cause you will also need some Application lifecycle and some data storage.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900