Firefox like tabs in Jtabbedpane

I am writing a simple code editor in JAVA

and iam using Widows (System) look and feel

, since in each code editor you can open multiple files in tabs

, but the problem is that there is a large number of tabs that they will place on multiple lines and I want to keep them in one line since Firefox

this is what happens to my editor

enter image description here

what i want to achieve

enter image description here

kindly help me how to do this

+3


source to share


1 answer


and iam using the Widows (System) look and feel like in each code editor you can open multiple files in tabs, but the problem is if there is a large number of tabs that they will place on multiple lines and I want to keep them in one line like Firefox does here, what's going on with my editor

use this JTabbedPane setting to get exact result with FireFox or Chrome platforms on the platform



JTabbedPane tabbedPane = new JTabbedPane(
     JTabbedPane.TOP, 
     JTabbedPane.SCROLL_TAB_LAYOUT);

      

+4


source







All Articles