Examples of BorderUIResource


Examples of javax.swing.plaf.BorderUIResource

        UIManager.getDefaults().put("List.foreground", new ColorUIResource(Color.yellow));
        Font font = new FontUIResource(list.getFont().deriveFont(100f));
        UIManager.getDefaults().put("List.font", font);
        DefaultListCellRenderer renderer = new DefaultListCellRenderer.UIResource();
        UIManager.getDefaults().put("List.cellRenderer", renderer);
        Border border = new BorderUIResource(BorderFactory.createEmptyBorder(0, 0, 0, 0));
        UIManager.getDefaults().put("List.border", border);
        list.setUI(ui);
        ui.installDefaults();
        ui.uninstallDefaults();
        assertNull(list.getBackground());
View Full Code Here
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.