• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing project...  RSS feed

 
Mandar Khire
Ranch Hand
Posts: 573
Android Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Campbell Ritchie
Sheriff
Posts: 53779
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!