Package lmnd.model

Source Code of lmnd.model.Resourses

package lmnd.model;

import java.awt.Font;
import java.awt.Image;
import java.net.URL;
import java.util.Collection;
import javax.swing.ImageIcon;
import javax.swing.LookAndFeel;
import javax.swing.UIDefaults;
import javax.swing.UIManager;
import javax.swing.plaf.FontUIResource;

/**
* Provides access to resources.
*/
public class Resourses {
        public Resourses() {}
        public Font getDefaultFont() {
                return new FontUIResource("SansSerif", Font.BOLD, 14);
        }
        public Collection<Object> getUIPropertyKeys() {
                LookAndFeel looknfeel = UIManager.getLookAndFeel();
                UIDefaults defaults = looknfeel.getDefaults();
                return defaults.keySet();
        }
        public Image getLogo() {
                URL url = getClass().getResource("/icons/TB-7-1.jpg");
                return new ImageIcon(url).getImage();
        }
}
TOP

Related Classes of lmnd.model.Resourses

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.