Changeset 53


Ignore:
Timestamp:
10/07/04 16:30:42 (15 years ago)
Author:
curtis
Message:

Add method for determining whether L&F is one of the Plastic series.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/visbio/util/LAFUtil.java

    r30 r53  
    4545 
    4646    if (!isMacLookAndFeel()) { 
    47       // CTR TODO test this 
    4847      System.setProperty("apple.laf.useScreenMenuBar", "false"); 
    4948    } 
     
    7776 
    7877  /** 
     78   * Gets whether the current look and feel is 
     79   * one of the JGoodies Plastic series. 
     80   */ 
     81  public static boolean isPlasticLookAndFeel() { 
     82    LookAndFeel laf = UIManager.getLookAndFeel(); 
     83    return laf.getClass().getName().startsWith( 
     84      "com.jgoodies.plaf.plastic.Plastic"); 
     85  } 
     86 
     87  /** 
    7988   * Gets list of available look and feels, taking some OS-specific 
    8089   * look and feels into account. 
Note: See TracChangeset for help on using the changeset viewer.