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 / February 2007

Tip: Looking for answers? Try searching our database.

Customizing the JTabbedPane to mimic Eclipse toolbar addition

Thread view: 
lancout - 21 Feb 2007 02:14 GMT
One thing I really, really want in Swing is this:

http://www.osrmt.com/downloads/temp/usability_want.png

specifically the context sensitive placement of the toolbar and menu
access in relation to the tabs i.e. same level (vital to preserve
space) and far right.

As far as I can tell I could do it if I subclassed JTabbedPane,
override one of the paint methods, draw the images, add mouse events
to rollover images and interact on click.  But, no doubt I would
eventually run into problems (especially with changing lafs).

I havent tried it but I assume with JDK 1.6 I can create a toolbar on
a JPanel and then use the panel for the tab portion of the tab.  A
long toolbar might look silly but perhaps the following looks decent:

http://www.osrmt.com/downloads/temp/usability_have.png

What do you think?
IchBin - 21 Feb 2007 02:33 GMT
> One thing I really, really want in Swing is this:
>
[quoted text clipped - 16 lines]
>
> What do you think?

Why not just code it using Eclipse SWT library.

Signature

Thanks in Advance...           http://weconsultants.prophp.org
IchBin, Pocono Lake, Pa, USA   http://ichbinquotations.awardspace.com
______________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

Lew - 21 Feb 2007 05:18 GMT
> Why not just code it using Eclipse SWT library.

Why is SWT worth it?

I have read that it is "proprietary" and "non-standard", but a lot of people
seem to like it.

My prejudice is to stick with Swing, though I admit the need for me to write
Java GUIs is pretty close to non-existent.

- Lew
IchBin - 21 Feb 2007 15:57 GMT
>> Why not just code it using Eclipse SWT library.
>
[quoted text clipped - 7 lines]
>
> - Lew

I would guess most of those people are just Eclipse enthusiast.

If it does what you want without selling the farm it maybe worth it.

Then again, I am just offering plan B.

Signature

Thanks in Advance...           http://weconsultants.prophp.org
IchBin, Pocono Lake, Pa, USA   http://ichbinquotations.awardspace.com
______________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)



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.