JFormDesigner / FlatLaf

FlatLaf - Swing Look and Feel (with Darcula/IntelliJ themes support)
https://www.formdev.com/flatlaf/
Apache License 2.0
3.42k stars 272 forks source link

Possible to set up a vertical JTabbedPane to have icons 'fixed' to one side while text floats? #571

Closed paul-griffith closed 2 years ago

paul-griffith commented 2 years ago

I've played around some with the client properties in FlatTabbedPane and wasn't able to accomplish this, but I may just be missing something. I'm trying to achieve the same result described in this SO post: https://stackoverflow.com/questions/26308859/jtabbedpane-tab-placement-set-to-left-but-icons-are-not-aligned

Was hoping the (excellent) FlatLaF might already have this covered :)

DevCharly commented 2 years ago

You can do that with:

tabbedPane.putClientProperty( "JTabbedPane.tabAlignment", "leading" );

(see https://www.formdev.com/flatlaf/client-properties/#JTabbedPane)

image