smuggledPancakes
smuggledPancakes

Reputation: 10323

Hiding the tabs in a DockableFrame using Jidesoft

I am stuck using JideSoft at the momemnt. I have a DockableFrame, which will have many views on it. I want to hide the tabs that let me switch between views, but I cannot figure out how. Can anybody help?

Upvotes: 1

Views: 570

Answers (2)

Obaid
Obaid

Reputation: 75

DockableFrame.hideFrame(String frameName) works perfectly.

If you want to hide/unhide a component inside a DockableFrame you'll need to access that component, set the visibility

component.setVisibility(!component.isVisible());

and then ask the parent DockableFrame to revalidate itself.

parentFrame.revalidate();

Upvotes: 0

David Qiao
David Qiao

Reputation: 36

User can right click on the tab or the title of DockableFrame to select close menu item to close it. If you refer to how to close it using API, DockingManager.hideFrame will do it.

Upvotes: 2

Related Questions