Skip to main content

Geertjan Wielenga: Make Empty JToolBars In MultiViewElements Not Floatable

Make Empty JToolBars In MultiViewElements Not Floatable: Sometimes you use the NetBeans API MultiViewElement class to create new tabs in a TopComponent, without needing to display a toolbar. However, you get an empty toolbar anyway, thanks to the getToolbarRepresentation override. That's a bit ugly... but gets even worse when the user tries to drag it, which sometimes succeeds, but...

Community: NetBeans