Posts

Showing posts from July, 2013

Create a Floating/Undocked Non-sigleton Window in Netbeans

first of all some really useful links on this topic: http://netbeans.dzone.com/news/secrets-netbeans-window-system https://blogs.oracle.com/geertjan/entry/case_study_customizing_the_netbeans http://forums.netbeans.org/ptopic15413.html To create a TopComponent which is undocked by default, one need to define an undock (or floating ) mode. To do so, create a new XML file and call it "newModeUnDock.xml" Wriet following in the file: <?xml version="1.0" encoding="UTF-8"?> <mode version="2.3">     <name unique="newModeUnDock" />     <kind type="editor" />     <state type="separated" />     <constraints>         <path orientation="vertical" number="0" weight="0.5"/>         <path orientation="horizontal" number="1" weight="0.5"/>     </constraints>     <bounds x="312" y=&qu