Re: Palette inside a TopComponent
Benno Markiewicz <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAA_aP4g1o0J2hdSPuU0_YM=pcPx2zRF_65OMarLNgwqpJeCm0w@mail.gmail.com> |
A Tc is only a swing container. So place a borderlayout in it. The scene panel as center and the palette as East. I guess it is such simple Den 10 nov. 2016 4:23 fm skrev "sonideft" <[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 > > > > >