http://wiki.netbeans.org/DevFaqInvokeActionProgrammatically
To find the action id behind a menu item, you can open layer.xml/<this layer in 
context> from your project (if you don't have a layer.xml yet, just create on). 
Then browse to Menu/View/Show Only Editor, then righ-click "Go to declaration":
To run something upon startup use @onShowing 
http://bits.netbeans.org/dev/javadoc/org-openide-windows/org/openide/windows/OnShowing.htmlThere
 is also @onStart if you need to do something earlier.
If you don't need the other editors, you may also just close them, see 
http://bits.netbeans.org/dev/javadoc/org-openide-windows/org/openide/windows/doc-files/api.html
 
Jerome



    Le lundi 21 décembre 2020 à 14:17:50 UTC+1, Ralf Eichinger 
<ralf.eichin...@gmail.com> a écrit :  
 
 I am developing a netbeans RELEASE90 platform based application.
all gui is placed in editor area.
Is there a way to programmatically call "Show Only Editor" (like in the
"view"-menu)
on startup of application?


  

Reply via email to