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
# 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
:-)