< prev index next >

src/java.desktop/share/classes/sun/swing/SwingUtilities2.java

Print this page

        

*** 356,365 **** --- 356,366 ---- * * @param c JComponent requesting FontMetrics, may be null * @param c Graphics Graphics * @param font Font to get FontMetrics for */ + @SuppressWarnings("deprecation") public static FontMetrics getFontMetrics(JComponent c, Graphics g, Font font) { if (c != null) { // Note: We assume that we're using the FontMetrics // from the widget to layout out text, otherwise we can get
*** 1704,1713 **** --- 1705,1715 ---- /** * Change focus to the visible component in {@code JTabbedPane}. * This is not a general-purpose method and is here only to permit * sharing code. */ + @SuppressWarnings("deprecation") public static boolean tabbedPaneChangeFocusTo(Component comp) { if (comp != null) { if (comp.isFocusTraversable()) { SwingUtilities2.compositeRequestFocus(comp); return true;
< prev index next >