src/java.desktop/share/classes/javax/swing/plaf/metal/MetalIconFactory.java

Print this page

        

*** 1615,1625 **** return 16; } } // End class TreeFloppyDriveIcon ! static private final Dimension folderIcon16Size = new Dimension( 16, 16 ); /** * Utility class for caching icon images. This is necessary because * we need a new image whenever we are rendering into a new * GraphicsConfiguration, but we do not want to keep recreating icon --- 1615,1625 ---- return 16; } } // End class TreeFloppyDriveIcon ! private static final Dimension folderIcon16Size = new Dimension( 16, 16 ); /** * Utility class for caching icon images. This is necessary because * we need a new image whenever we are rendering into a new * GraphicsConfiguration, but we do not want to keep recreating icon
*** 1785,1795 **** public int getShift() { return -1; } public int getAdditionalHeight() { return 2; } } ! static private final Dimension fileIcon16Size = new Dimension( 16, 16 ); /** * <p> * <strong>Warning:</strong> * Serialized objects of this class will not be compatible with --- 1785,1795 ---- public int getShift() { return -1; } public int getAdditionalHeight() { return 2; } } ! private static final Dimension fileIcon16Size = new Dimension( 16, 16 ); /** * <p> * <strong>Warning:</strong> * Serialized objects of this class will not be compatible with
*** 1885,1895 **** public int getShift() { return 2; } public int getAdditionalHeight() { return 4; } } ! static private final Dimension treeControlSize = new Dimension( 18, 18 ); /** * <p> * <strong>Warning:</strong> * Serialized objects of this class will not be compatible with --- 1885,1895 ---- public int getShift() { return 2; } public int getAdditionalHeight() { return 4; } } ! private static final Dimension treeControlSize = new Dimension( 18, 18 ); /** * <p> * <strong>Warning:</strong> * Serialized objects of this class will not be compatible with
*** 2050,2062 **** // // Menu Icons // ! static private final Dimension menuArrowIconSize = new Dimension( 4, 8 ); ! static private final Dimension menuCheckIconSize = new Dimension( 10, 10 ); ! static private final int xOff = 4; private static class MenuArrowIcon implements Icon, UIResource, Serializable { public void paintIcon( Component c, Graphics g, int x, int y ) { --- 2050,2062 ---- // // Menu Icons // ! private static final Dimension menuArrowIconSize = new Dimension( 4, 8 ); ! private static final Dimension menuCheckIconSize = new Dimension( 10, 10 ); ! private static final int xOff = 4; private static class MenuArrowIcon implements Icon, UIResource, Serializable { public void paintIcon( Component c, Graphics g, int x, int y ) {