Java 8 UIManager.LookAndFeelInfo - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 UIManager.LookAndFeelInfo class.

This code example shows how to use the following methods:getClassName
            this.frame.dispose();
        } 
        else { 
            LookAndFeelInfo info = this.infos[this.index % this.infos.length];
            try { 
                UIManager.setLookAndFeel(info.getClassName());
            } 
            catch (Exception exception) {
                System.err.println("could not change look and feel");
            } 
            SwingUtilities.updateComponentTreeUI(this.frame);
            this.frame.pack();
            this.frame.setLocationRelativeTo(null);
            this.index++;
            SwingUtilities.invokeLater(this);
        } 
    } 
 
    public void uncaughtException(Thread thread, Throwable throwable) {
        System.exit(1);
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getClassName
        public boolean equals(Object obj) { 
            if (!(obj instanceof LookAndFeelInfo)) {
                return false; 
            } 
            LookAndFeelInfo other = (LookAndFeelInfo) obj;
            return getClassName().equals(other.getClassName());
        } 
 
        @Override 
        public int hashCode() { 
            return getClassName().hashCode();
        } 
    } 
 
    public static void setUIFont(javax.swing.plaf.FontUIResource font) {
        Enumeration<Object> keys = UIManager.getDefaults().keys();
        while (keys.hasMoreElements()) { 
            Object key = keys.nextElement(); 
            if (UIManager.get(key) instanceof javax.swing.plaf.FontUIResource) {
                UIManager.put(key, font);
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getClassName
    } 
 
 
    public LookAndFeel( LookAndFeelInfo info ) {
        this.info = info;
        this.isSystem = info.getClassName().equals(UIManager.getSystemLookAndFeelClassName());;
    } 
 
    @Override 
    public String toString() {
        return info.getName();
    } 
 
    public String getName() {
        return info.getClassName();
    } 
 
    public boolean isSystem() { 
        return isSystem;
    } 
3
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Java 8 UIManager.LookAndFeelInfo Methods: