UIResources.java :  » Remote » lazy » org » sunshinebox » team » lazy » ui » Android Open Source

Android Open Source » Remote » lazy 
lazy » org » sunshinebox » team » lazy » ui » UIResources.java
package org.sunshinebox.team.lazy.ui;

import java.awt.Image;
import java.awt.Toolkit;

/**
 * Class for getting application resources such as icons or localized strings.
 */
// TODO: Add support of getting localized strings
public class UIResources {

  public static Image getImage(String string) {
    return Toolkit.getDefaultToolkit().createImage(
        UIResources.class
            .getResource("/org/sunshinebox/team/lazy/resources/"
                + string));
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.