How to list all available LookAndFeel themes?
Asked Answered
G

2

7

How to list all available LookAndFeel themes? I want to show then in a JComboBox for the user to select.

Genarogendarme answered 16/4, 2010 at 19:9 Comment(0)
I
7

It's really simple:

public static UIManager.LookAndFeelInfo[] getInstalledLookAndFeels()

by the way check UIManager documentation here

Irena answered 16/4, 2010 at 19:12 Comment(1)
By your method, one item in that list could represent the Metal look and feel class. Metal has two themes, "DefaultMetal" & "Ocean", some other look and feels might also do this. Your question does not answer the original question which explicitly says How to list all available LookAndFeel themesGannie
P
6
UIManager.LookAndFeelInfo[] lafInfo = UIManager.getInstalledLookAndFeels();
Proletarian answered 16/4, 2010 at 19:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.