GUI Reuse

Im working on a school project in Netbeans. I have a menus system in my mainFrame. how ever I need to know do I really have to recreate the menu for each form that I create or is there a way I can use the same menu object I created. 2) is there any website any one has come across to show me to do a effective navigation. Theres about 5 different forms. Thanx in advance.

[378 byte] By [melikaia] at [2007-11-26 23:53:36]
# 1

> Im working on a school project in Netbeans. I have a

> menus system in my mainFrame. how ever I need to know

> do I really have to recreate the menu for each form

not necessarily. Can you just put new forms into the same frame using JFrame.setContentPane? Even if you can't do this, there may be other ways.

> menu object I created. 2) is there any website any

> one has come across to show me to do a effective

> navigation. Theres about 5 different forms. Thanx in

> advance.

Surely you must have seen this enough in your life to have some idea of how to do it. Basically you can just have forward and back buttons and do validation on your form before it gets switched out

tjacobs01a at 2007-7-11 15:34:45 > top of Java-index,Desktop,Core GUI APIs...
# 2
I mean like the code for the menu. I wanna use the same code instead of writing code for a menu button 5 different time for each of the 5 different forms
melikaia at 2007-7-11 15:34:45 > top of Java-index,Desktop,Core GUI APIs...
# 3
that you could definitely reuse, but you have to make it modular
tjacobs01a at 2007-7-11 15:34:45 > top of Java-index,Desktop,Core GUI APIs...
# 4
Can you give me an Idea? Do I make it as a template or is there an option some where in there? Using netbeans 5.5
melikaia at 2007-7-11 15:34:45 > top of Java-index,Desktop,Core GUI APIs...
# 5

> Can you give me an Idea? Do I make it as a template

> or is there an option some where in there? Using

> netbeans 5.5

The thing is, making code reusable and modular is more of an art than a science. There aren't any hard and fast rules to learn. You just have to PRACTICE!

http://www.youtube.com/watch?v=eGDBR2L5kzI

:-)

tjacobs01a at 2007-7-11 15:34:45 > top of Java-index,Desktop,Core GUI APIs...
# 6
Theres actually a youtub thing for it, keep in mind that every re-creation of the menu is private. Is there a way I can get the menu object modular and inherite the entire system to all my forms?
melikaia at 2007-7-11 15:34:45 > top of Java-index,Desktop,Core GUI APIs...