Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #996

Customizing the JTabbedPa

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.alt.net!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "lancout" <lancout@THRWHITE.remove-dii-this>
Subject Customizing the JTabbedPa
Message-ID <1172024077.303328.63080@v45g2000cwv.googlegroups.com> (permalink)
X-Comment-To comp.lang.java.programmer
Newsgroups comp.lang.java.gui
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 26
Date Wed, 27 Apr 2011 15:30:47 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918247 96.60.20.240 (Wed, 27 Apr 2011 10:30:47 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:30:47 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:996

Show key headers only | View raw


  To: comp.lang.java.programmer
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?

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar


Thread

Customizing the JTabbedPa "lancout" <lancout@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
  Re: Customizing the JTabb "IchBin" <ichbin@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
    Re: Customizing the JTabb "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000

csiph-web