JideTabbedPane close butons

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

JideTabbedPane close butons

Postby pablovilas » Mon Dec 26, 2011 10:48 am

It seems that close button on tab doesn´t work here is my code:

Code: Select all
JideTabbedPane pane = new JideTabbedPane();
pane .setUseDefaultShowCloseButtonOnTab(true);


also I have problems with:

Code: Select all
contenedorPrincipal.setTabClosableAt(0, true);


Thank you.
pablovilas
 
Posts: 45
Joined: Wed Aug 31, 2011 10:13 am

Re: JideTabbedPane close butons

Postby JIDE Support » Mon Dec 26, 2011 1:12 pm

Will fix the close button issue when isUseDefaultShowCloseButtonOnTab() returns true in next regular release.

However, for the setTabCloseable(), I could not observe any issue. Can you please describe the issue you observed a little bit more?

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: JideTabbedPane close butons

Postby pablovilas » Wed Dec 28, 2011 5:54 am

Hello,

using:

Code: Select all
contenedorPrincipal.setShowCloseButton(true);
contenedorPrincipal.setTabClosableAt(0, false);


works justs ok, so it´s a consequence of
Code: Select all
isUseDefaultShowCloseButtonOnTab()
returns false.
Thank you.
pablovilas
 
Posts: 45
Joined: Wed Aug 31, 2011 10:13 am

Re: JideTabbedPane close butons

Postby JIDE Support » Wed Dec 28, 2011 7:08 am

Thanks for clarification. Will fix the issue in next regular release.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: JideTabbedPane close butons

Postby JIDE Support » Tue Jan 03, 2012 12:27 pm

Happy new year. Just checked this issue again and it turns out that setUseDefaultShowCloseButtonOnTab(true) has to work together with setShowCloseButton(true). If both method are invoked and the key "JideTabbedPane.showCloseButtonOnTab" in UIDefaults is also assigned to true, the close button should be able to be displayed in the tab. Click on the close button in the tab to close a tab also works for me. Please correct me if I happen to miss anything.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: JideTabbedPane close butons

Postby pablovilas » Wed Jan 04, 2012 5:58 am

Happy new year for you too. Just to let you know I use this code and work correctly

Code: Select all
//Turn on the key
UIManager.getDefaults().put("JideTabbedPane.showCloseButtonOnTab",true);
//Instantiate the tabbed pane
JideTabbedPane tabs = new JideTabbedPane();
tabs.setShowCloseButton(true);
tabs.setUseDefaultShowCloseButtonOnTab(true);
pablovilas
 
Posts: 45
Joined: Wed Aug 31, 2011 10:13 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: Google [Bot] and 16 guests

cron