Hi all,
Does anybody know of a class which provides tabbed panes similar to
Swing's JTabbedPane, but allows optional close buttons on the tabs? It
would need to be LGPL or BSD or similarly licensed.
This follows on from a question I asked in comp.lang.java.programmer. I
wanted to use Mustang's JTabbedPane (with the ability to add components
to the tabs) with the 1.5 JRE. Someone rightly pointed out that this
was not covered by the licence.
Thank you,
Bruce.
Kroll, Michael - 26 Apr 2006 07:23 GMT
Hi,
bruces1@gmail.com schrieb:
> Hi all,
>
> Does anybody know of a class which provides tabbed panes similar to
> Swing's JTabbedPane, but allows optional close buttons on the tabs? It
> would need to be LGPL or BSD or similarly licensed.
take a look to the NetBeans source.
They use closeable tabbed panes.
I hope it is helpfully....
Regards
Michael

Signature
German NetBeans and GlassFish Site
James Harvey - 26 Apr 2006 12:29 GMT
> Hi,
>
[quoted text clipped - 13 lines]
> Regards
> Michael
Thanks Michael.
The NetBeans tabbed pane is called TabContainer and is available here:
http://www.clientjava.com/blog/2004/07/13/1089730946000.html
Michael Dunn - 26 Apr 2006 19:59 GMT
> Hi all,
>
> Does anybody know of a class which provides tabbed panes similar to
> Swing's JTabbedPane, but allows optional close buttons on the tabs? It
> would need to be LGPL or BSD or similarly licensed.
this might work for you
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=703179
James Harvey - 28 Apr 2006 14:47 GMT
>>Hi all,
>>
[quoted text clipped - 5 lines]
>
> http://forum.java.sun.com/thread.jspa?forumID=57&threadID=703179
Thanks Michael,
This solution isn't bad but not quite what I'm looking for. It can't,
for example, paint the icon a different colour on mouse hover, and it
selects and displays the tab before closing.
I am going to use the NetBeans TabContainer as suggested by Michael (Kroll).
Also, the Java 6 (Mustang) JTabbedPane would work nicely, but
unfortunately this isn't an option for me.
- Bruce