Version: 1.1.1

org.biomoby.service.dashboard
Class LookAndFeelUtils

java.lang.Object
  extended by org.biomoby.service.dashboard.LookAndFeelUtils

public abstract class LookAndFeelUtils
extends Object

A utility class helping to set different "Look and Feel"s.

Version:
$Id: LookAndFeelUtils.java,v 1.1 2005/12/18 05:42:23 senger Exp $
Author:
Martin Senger

Constructor Summary
LookAndFeelUtils()
           
 
Method Summary
static JMenu getLookAndFeelMenu(String title, Icon icon, JFrame frame)
          Create a menu whose sub-menu items - when invoked - change Look and Feel of the whole application (represented by the given 'frame').
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookAndFeelUtils

public LookAndFeelUtils()
Method Detail

getLookAndFeelMenu

public static JMenu getLookAndFeelMenu(String title,
                                       Icon icon,
                                       JFrame frame)
Create a menu whose sub-menu items - when invoked - change Look and Feel of the whole application (represented by the given 'frame').

It includes all available L-and-Fs in the returning menu but it does not check if all are present. Later when one is selectyed and it is found that its class does not exist, its menu item is disabled. This way saves to load all L-and-Fs in advance.

Parameters:
title - of the created menu
icon - of the created menu (can be null)
frame - is the main application component
Returns:
a menu with sub-menus defining available "Look and Feel"s

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010