Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / April 2006

Tip: Looking for answers? Try searching our database.

Tabbed pane with close buttons

Thread view: 
bruces1@gmail.com - 26 Apr 2006 02:58 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 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.