FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Open a Top Component on Startup/Window Reset

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
smozely



Joined: 06 Oct 2009
Posts: 12

PostPosted: Thu Nov 05, 2009 10:18 pm    Post subject: Open a Top Component on Startup/Window Reset Reply with quote

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
View user's profile Send private message
emmbec



Joined: 27 Nov 2008
Posts: 49
Location: Queretaro, Mexico

PostPosted: Fri Nov 06, 2009 8:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
smozely



Joined: 06 Oct 2009
Posts: 12

PostPosted: Mon Nov 09, 2009 10:02 pm    Post subject: Reply with quote

Cool, I'll give that a shot

Thanks very much for the info
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB