Palette inside a TopComponent

"sonideft" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
Just looking for ideas on an approach that may work.

I have a TopComponent that I use as an Editor. I currently has a BeanTreeView, a GraphScene and other editing UI. I currently also have a palette that opens in its own TopComponent and positioned where I want it. The purpose of the palette is to provide three icons/nodes that I can drop onto the GraphScene. This all works fine.

The opportunity is that the palette takes up a lot of space, only has three small items and users using the RCP app on  laptops would appreciate it if the palette could be moved inside the TopComponent with the GraphScene. Perhaps in a much smaller jPanel somewhere.

I have gone through the Palette source code and it seems it always wants to open in a TopComponent. I found a PalettePanel class which looked promising until I had difficulty figuring out which library to include for org.netbeans.modules.palette.ui.PalettePanel. The search for dependency libraries is not finding anything. I am still on NetBeans 8.02.

Any ideas on how or if this may be possible would be appreciated.

Steve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.