Q: | Is it possible to add parameters to the VisualMust generated constructors ? |
A: Yes it is, if you stay compatible with the Java classes. Remember
that some classes, such as applets or beans, should have a constructor without parameters.
| |
| |
Q: | What is the best location to initialize components for my application ? |
A: The best location is within your application constructor, after
the super() method. You may have access to each component using the get_<BeanName>
method.
| |
| |
Q: | How could I overload methods for a component without creating a bean ? |
A: First, you should overload the createInstance_<BeanName>()
method. Then, you will be able to create your own instance. The following example shows how to overload the getToolTipText() method.
| |
| |
Q: | What is the best way to set one's own table model ? |
A: The init_<BeanName>() method, generated in the Abstract.java
file, is quite candidate to be overloaded by your application source code.
| |
| |
Q: | A pool of objects, what for ? |
A: You may have to share reusable objects between several developers
or several applications. In this case, you may put them into an ODB file. Let's
take the example of creating an ODB named "Utilities" : if this
ODB contains a logo window and several popup menus that might be used in several
applications, you may have access to these components (from another application)
by using the following code :
Note that both components MyLogo and MyPopupMenu will be created only if they are used. | |
|