Does the text in Swing components have a default font? In particular, what about tab labels on JTabbedPane
s?
I'm working on a mock-up of a GUI made with Swing and want it to blend it with a screen image I grabbed of a Swing app.
Does the text in Swing components have a default font? In particular, what about tab labels on JTabbedPane
s?
I'm working on a mock-up of a GUI made with Swing and want it to blend it with a screen image I grabbed of a Swing app.
It may depend on the 'Look and Feel' you are using, but for me Swing's default font is
DejaVu Sans - Plain
For most components the font size defaults to around 12 or 13
It looks like it's Arial. That's what Identifont tells me and it looks right.
It depends on the Look and Feel. If it's an application you've written, get the values from UIManager.getDefaults.getFont("TabbedPane.font")
The UIManager Defaults shows what the values are for all properties for all components (including "TabbedPane.font").