If this cant be done is there a way I can make an ImageIcon a tab itself? or somehow make it to perform like a tab?

-----------------

Just thought i might add Im after a rounded corners look to the tabs themselves, with a custom gradient as their background colour, not just the plain default one colour thats there already, if there is a way I can do this without having to make the image with photoshop then add it like ive been doing, please tell me the key words i should be seraching for :)

08-09-2010, 02:17 PM

Fubarable

Since a JTabbedPane inherits from JComponent, why not just override its paintComponent method as we do for a JPanel and draw in there. If you do this, then you'll need to make sure that the components added have their opaque properties set to false.