• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Swing project...

 
Ranch Hand
Posts: 630
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Marshal
Posts: 79153
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic