|
From: <fbe...@ft...> - 2004-09-07 12:51:46
|
Aggelos Georgoulas wrote: > Dear Francois, > > > > Thank you very much for your help. > > > > Adding a <control id="contentPane" class="javax.swing.JDesktopPane"> > turns the window to an MDI. > > > > However adding InternalFrames within this content pane is a little problem > > > > If I add the InternalFrame GUI description (e.g. <control > id="myInternalFrame" class="javax.swing.JInternalFrame">…etc) in the > same xml document, then obviously only one internal frame is added when > the MDI application starts. > > > > Do you have any idea how we could add internalFrames dynamically (as > respond to an event)? > > > > One solution could be to describe the internalFrame GUI in a separate > xml document, but how we could then use this xml through JGB? > > Do you have any clue? See the register element description: http://jgb.sourceforge.net/documentation/elements/register/index.php This allows you to register an EventListener to any control. You could then create menu items that call your event handler, and the handler would respond by creating new JInternalFrames. Also see the Browser tutorial page: http://jgb.sourceforge.net/documentation/tutorials/webbrowser/index.php Bye ! François |