|
Ok, your Visual Cafe' project is in need of one or more database editors, and we are going to add them to it right now! MaxBase descends from java.awt.Frame, therefore it's not possible to put it into another frame (Java doesn't support the concept of MDI, Multiple Document Interface). What we can do, however, is to create as many new MaxBase windows as we need, and control and customize them. First of all, you need to be working on a project. In the example below I have used the default applet created by Visual Cafe' when it starts for the first time, but of course you can use MaxBase wherever you like. Righ click on the project window, in the white space, and choose "Insert component...". A selection of available frames will be presented, like in the picture below:
Choose MaxBase, and press "OK". A new, blank frame will appear in your project. Don't worry: it's ok. At this point, you can put a component into some other window, say a button, in order to see how to make the rest of the project to interact with the MaxBase instance that's been just created. Select the button you've just created, right click on it, and select "Add interaction...". A wizard will appear, and just for testing purposes select the items like in the following picture:
Click on "finish" and let Visual Cafe' generate the Java code for you. Now we're ready to test our creation: click on the "Project" item in the main menu, and then "Execute". Your applet will pop up, and as soon as you click on the button that launches MaxBase, your MaxBase bean will show, as in the picture below: (Allow some seconds for bean creation)
Mission accomplished! |
Max
Marsiglietti © 1997
Layout and
artwork Andrea Resmini 1997