Forums Register Login

Swing project...

+Pie Number of slices to send: Send
I am going to do swing project...in that 1 Main_program which contain almost 30 options to choose...i choose JMenubar,Jtoolbar
For each option i create 1 separate java file which extend JPanel...ie 30 java files which extend JPanel. & its object shown in Main_program...
Each Jpanel contain lots of Component like Checkboxes,textboxes,textfields,listboxes,comboboxes...etc
When in 1st panel i choose/write/checked perticular components data, then depend on that data 2nd panels components data will change...
Example:- In 1st panel i use list box which has data like D1,D2,D3....D100.
When i choose D1 to D25... from 2nd panels checkboxes only enable checkbox name D=25% other checkbox remain disable or invisible...
similar lots of issues has to be done...
My question is by creating Database & writing/fetching it from each panels i can handle all this issues...but If my selecting/manipulating data will complete at 30th panel till no need to save data...then
is there way to keep all this data travel 1 panel to another without using database...Just one time data reading(at program start) & writing(at 30th Panels save button Action event)...
Is it right way or i should read/write data at each JPanel?

By which way project remain simple & depend on only java?
+Pie Number of slices to send: Send
No, that is not the right way. You are doing the whole thing backwards.

What you want is a program which fetches data from a database. Then you want to surround it in a GUI. Then you will decide how many menus you need.
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 827 times.
Similar Threads
Help sorting out what combination of layouts will provide the result I need
Application structure...
How do I find out if a change has been made on a panel
Where to store the game state.
JPanel to JPanel in a JFrame
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:27:49.