You won't be able to just subclass JTabbedPane to do this...
I would look at JMenuBar and JMenu, and see if you could subclass JMenuBar to lay out it's menus differently, and then make a subclass JMenu that draws itself like a tab, and use a CardLayout in the panel below it. Make the JMenu subclass switch
cards in the CardLayout rather than popping up a menu.