Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create master/detail form like access or oracle did?

 
Tanakorn Numrubporn
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new for JDBC and I want to create master/detail form (like mainform/subform of msAccess OR master/detail form of Oracle). I google for several web and several day for this topic but can't find any information. I using Eclipse and find the 'org.eclipse.ui.forms' package but I have no knowledge to use it. May you(anyone) please reply to me the suggestion or the site that say something about this form style.

Thank you in advance
Tanakorn
 
Jeff Ash
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Eclipse IDE does not provide an automatic wizard that generates a master/detail type form for you like you would find in MS Access. You will need to create the form and any connecting actions yourself.

For example, you might begin with a JPanel (if using Swing) or a Composite (if using SWT) and add controls for the master section. Then, you would need to add whatever actions necessary to update another JPanel or Composite representing the detail section.

I don't know your GUI programming background, but if you are new to Java GUI, you should check out the Java GUI Tutorials at:
http://java.sun.com/developer/onlineTraining/GUI/

If you decide to go with SWT for your UI, check out:
http://www.eclipse.org/swt/snippets/
 
Tanakorn Numrubporn
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for reply.
Now I try to use JDeveloper and it serve my will so well. I can use this tool to generate master/detail form in wizard style and I can turn to look in the java code that support behind this form style.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic