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


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

Customizing the JTabbedPa

From "lancout" <lancout@THRWHITE.remove-dii-this>
Subject Customizing the JTabbedPa
Message-ID <1172024077.303328.63080@v45g2000cwv.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:30 +0000
Organization TDS.net

Show all headers | 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