This is how JTabbedPane renders in Java 1.6:
When using Java 1.7 (or 1.8 EA), see the bottom of the tabs getting clipped:
I tried, without any success (or effect) the system properties -Dcom.apple.macos.smallTabs=true and -Dcom.apple.smallTabs=true.
Any solution or hack for this is appreciated.
Running this example, I am unable to reproduce the effect shown on Mac OS X 10.9.2 using Java 7. I suspect you are neglecting to
pack()
the enclosingWindow
, but you might compare your code to the one shown for reference.Found the issue. I had this code that was called before building the UI in
SwingUtilities.invokeLater
block:I wanted all UI elements to have uniform Font in my application. When I commented this block, the UI rendering came up as in Java 6. Seems to be a bug in later Java releases.