How to hide title of JTabbedPane tabs?

1

I need to hide the JTabbedPane titles because I'm creating my own buttons to access the tabs.

    
asked by anonymous 15.07.2015 / 14:04

2 answers

1

I was able to solve using CardLayout, it's made for it

How to use .

    
17.07.2015 / 05:07
3

Skywalker

I do not know if there is anything like setTabVisible(boolean b) . But you can use the method of JTabbedPane setTabComponentAt :

jTabbedPane1.setTabComponentAt(int index, Component c); 

You should do for every flap. Sending null as a component will not work, but try to send a panel with zero width and height.

    
15.07.2015 / 14:22