JTabbedPane doesn't follow Sun's UI standard?  
Author Message
Bella





PostPosted: 2004-11-20 3:44:00 Top

java-programmer, JTabbedPane doesn't follow Sun's UI standard?
I'm using the JTabbedPane control.
While looking for a way to get rid of the line between the tabs and the
selected frame, I noticed that the Sun guidelines show that there shouldn't
be one there in the first place:
http://java.sun.com/products/jlf/ed2/book/HIG.Windows3.html#38176

Is this maybe a result of using the system L&F on MS windows?

Is there any way of changing this?


-Bella

 
Karsten Lentzsch





PostPosted: 2004-11-20 6:01:00 Top

java-programmer >> JTabbedPane doesn't follow Sun's UI standard? Bella wrote:

> I'm using the JTabbedPane control.
> While looking for a way to get rid of the line between the tabs and the
> selected frame, [...]

Likely you've set a border to the (selected) tab.
This happens implicitly if you wrap the tab content
in a JScrollPane, EtchedBorder, etc.

Check whether you can remove the inner border.
More generally you want to avoid duplicate borders.
I provide a demo that contains a page full of
examples of these duplicate and unwanted borders.
Download or web start the JGoodies Looks Demo,
choose an L&f, click "Launch Demo" and select
the "ClearLook" tab. If you enable ClearLook
in the Launcher frame, the duplicate borders
will be removed.

http://www.jgoodies.com/downloads/index.html

- Karsten Lentzsch
 
Bella





PostPosted: 2004-11-20 6:56:00 Top

java-programmer >> JTabbedPane doesn't follow Sun's UI standard? Karsten Lentzsch <email***@***.com> wrote in news:cnlqf6$4ge$02$1
@news.t-online.com:

> Bella wrote:
>
>> I'm using the JTabbedPane control.
>> While looking for a way to get rid of the line between the tabs and the
>> selected frame, [...]
>
> Likely you've set a border to the (selected) tab.
> This happens implicitly if you wrap the tab content
> in a JScrollPane, EtchedBorder, etc.
>
> Check whether you can remove the inner border.
> More generally you want to avoid duplicate borders.
> I provide a demo that contains a page full of
> examples of these duplicate and unwanted borders.
> Download or web start the JGoodies Looks Demo,
> choose an L&f, click "Launch Demo" and select
> the "ClearLook" tab. If you enable ClearLook
> in the Launcher frame, the duplicate borders
> will be removed.
>
> http://www.jgoodies.com/downloads/index.html
>
> - Karsten Lentzsch
>

Hi Karsten, thanks for responding.

I removed all the borders in the app, then I realized that the tab
selection effect itself puts a shadow line under the selected tab.
This causes a separation to show between the selected tab thumb and the
content of the tab no matter what border I try.

-Bella