| View previous topic :: View next topic |
| Author |
Message |
smozely
Joined: 06 Oct 2009 Posts: 12
|
Posted: Thu Nov 05, 2009 10:18 pm Post subject: Open a Top Component on Startup/Window Reset |
|
|
Hi everybody,
I have a TopComponent that can have multiple instances open at once. I followed the example from the forums to make a JPanel, change it to a Top Component, and then create an Action to be able to open it multiple times.
What we have been requested to do now is have one instance of the a couple of these multiple copy TopComponents open on startup ... to show the users a nice layout of the application (our users wont understand the power of the docking features in the platform when they start using it, so we want to have a default layout that looks nice.)
So I can do this using a ModuleInstaller, but that doesn't seem to get fired when "Reset Windows" is fired. Also it will be everytime the app starts, not just when started fresh.
Just wondering if there is a way to have both ways work (i.e. multiple instances avaiable, same startup settings as regular topcomponenet )? Would creating the xml strucutre in layer.xml and *Settings.xml/*Wstcref.xml work (don't want to spend time trying to get that right unless I think it will work)
Steve |
|
| Back to top |
|
 |
emmbec
Joined: 27 Nov 2008 Posts: 49 Location: Queretaro, Mexico
|
Posted: Fri Nov 06, 2009 8:02 pm Post subject: |
|
|
| I have managed to do this by specifying in the XMLs you mentioned the position and if they should be opened or not on startup and it works for me. Give it a try, it should work. |
|
| Back to top |
|
 |
smozely
Joined: 06 Oct 2009 Posts: 12
|
Posted: Mon Nov 09, 2009 10:02 pm Post subject: |
|
|
Cool, I'll give that a shot
Thanks very much for the info |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|