You can also see an example of how this can be done at

http://www2.gol.com/users/tame/swing/examples/JTabbedPaneExamples2.html

John


-----Original Message-----
From: Wilson AJ [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 5:59 AM
To: [EMAIL PROTECTED]
Subject: RE: forcing a single 'row' of tabs in a JTabbedPane


Paul,

I think this feature is coming in JDK 1.4 (Merlin), but Claude Duguay
implemented this functionality in the April issue of Java Pro magazine.  He
didn't mess with look and feel for this.  The code for his excellent column
(Visual Components) is downloadable from www.java-pro.com.

A.J. Wilson
Principal Computer Analyst
Litton PRC (for 2 more days)

> -----Original Message-----
> From: Farwell, Paul [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 02, 2001 11:58 PM
> To: 
> Subject: forcing a single 'row' of tabs in a JTabbedPane
> 
> 
> Does anyone know how to prevent the tabs of a JTabbedPane 
> from stacking in
> multiple 'runs' when the layout shrinks?  I want to keep all 
> of the tabs on
> a single row, even if the layout can't show them all at once.
> 
> Unfortunately, the code that calculates the number of runs is 
> buried deep in
> the lower intestine of the BasicTabbedPaneUI. Looks like I 
> will have to
> create three subclass to get to it...
> 
> Any thoughts?
> _______________________________________________
> Advanced-swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/advanced-swing
> 
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to