< prev index next >
src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsInternalFrameTitlePane.java
Print this page
*** 487,497 ****
}
}
/**
* A versatile Icon implementation which can take an array of Icon
! * instances (typically <code>ImageIcon</code>s) and choose one that gives the best
* quality for a given Graphics2D scale factor when painting.
* <p>
* The class is public so it can be instantiated by UIDefaults.ProxyLazyValue.
* <p>
* Note: We assume here that icons are square.
--- 487,497 ----
}
}
/**
* A versatile Icon implementation which can take an array of Icon
! * instances (typically {@code ImageIcon}s) and choose one that gives the best
* quality for a given Graphics2D scale factor when painting.
* <p>
* The class is public so it can be instantiated by UIDefaults.ProxyLazyValue.
* <p>
* Note: We assume here that icons are square.
*** 518,528 ****
}
}
}
/**
! * @return the <code>Icon</code> closest to the requested size
*/
protected Icon getBestIcon(int size) {
if (icons != null && icons.length > 0) {
int bestIndex = 0;
int minDiff = Integer.MAX_VALUE;
--- 518,528 ----
}
}
}
/**
! * @return the {@code Icon} closest to the requested size
*/
protected Icon getBestIcon(int size) {
if (icons != null && icons.length > 0) {
int bestIndex = 0;
int minDiff = Integer.MAX_VALUE;
< prev index next >