2016-06-07 22:20:53 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Didier Clermonté <dclermonte@april.org>
|
|
|
|
* Copyright (C) 2016 Christian Pierre Momon <christian.momon@devinsy.fr>
|
|
|
|
*
|
|
|
|
* This file is part of Siba.
|
|
|
|
*
|
|
|
|
* Siba is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2016-04-25 18:44:47 +02:00
|
|
|
package org.dclermonte.siba.gui.utils;
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import javax.swing.UIManager;
|
|
|
|
|
2016-05-18 23:20:29 +02:00
|
|
|
/**
|
|
|
|
* Some utility
|
2016-05-22 21:47:41 +02:00
|
|
|
*
|
|
|
|
* @author dclermonte
|
2016-05-18 23:20:29 +02:00
|
|
|
*
|
|
|
|
*/
|
2016-04-25 18:44:47 +02:00
|
|
|
public class GUIToolBox
|
|
|
|
{
|
2016-07-26 19:45:33 +02:00
|
|
|
|
2016-04-25 18:44:47 +02:00
|
|
|
public static List<String> availableLookAndFeels()
|
|
|
|
{
|
|
|
|
List<String> result;
|
|
|
|
|
|
|
|
//
|
|
|
|
result = new ArrayList<String>();
|
|
|
|
|
|
|
|
//
|
|
|
|
for (UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels())
|
|
|
|
{
|
|
|
|
//
|
|
|
|
result.add(info.getName());
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
return result;
|
|
|
|
}
|
2016-07-28 23:38:52 +02:00
|
|
|
|
2016-04-25 18:44:47 +02:00
|
|
|
}
|