Link to home
Start Free TrialLog in
Avatar of Flashdaddee
Flashdaddee

asked on

JTabbedPane: customizing

Hi there,
I'm using a JTabbedPane for my GUI, and I'd like to customize its view a bit.
There are two things which I want to modify:

1) the gap at the bottom of the tabs (assuming my tabs are at the bottom of the screen). Under the tabs, there's a small gap (maybe a couple of pixels), and that's too much of a waste of space for my GUI, so I'd like to be able to set that gap to zero, so that my tabs appear like buttons at a SOUTH location

2) the border around the tabs. I'd like to make it non-visible. I mean, I'd like to have my icons one next to the other, without being able to see that each icon belongs to a tab. So that the user doesn't know which layout I'm using. The only thing the user should see are my icons.

Thanks a lot for your help.



Just a small clarification: I'll split the points between both questions, if the answers allow me to modify my GUI in the way I want to.
Avatar of Flashdaddee
Flashdaddee

ASKER

BTW, I'm using JDK 1.3
ASKER CERTIFIED SOLUTION
Avatar of jimmack
jimmack

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I tried with CardLayout, and although the look for the GUI was nice, the interaction wasn't as good (I had some problems with the JPanels in each card). That's why I was trying to get a JTabbedPane looking like a CardLayout.

If I don't find an easy way, I guess I'll try harder with the CardLayout.

Thanks jimmack
;-)
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>> Which L&F are you using?

Since it's for Pocket PCs, I'm trying to make it Windows-like.

Maybe in a couple of months I'll try to get my own L&F, trying to get the rotated JPanels as well (as in my other thread).
If you're interested we did a custom tab implementation for the applets used at http://www.evalu8.com.au