< prev index next >

src/java.desktop/macosx/classes/com/apple/laf/AquaInternalFrameDockIconUI.java

Print this page

        

*** 49,74 **** --- 49,80 ---- protected JInternalFrame.JDesktopIcon fDesktopIcon; protected JInternalFrame fFrame; protected ScaledImageLabel fIconPane; protected DockLabel fDockLabel; protected boolean fTrackingIcon = false; + private TextUIDrawing textUIDrawing; public static ComponentUI createUI(final JComponent c) { return new AquaInternalFrameDockIconUI(); } public void installUI(final JComponent c) { fDesktopIcon = (JInternalFrame.JDesktopIcon)c; installComponents(); installListeners(); + textUIDrawing = SwingUtilities2.getTextUIDrawing(textUIDrawing); } public void uninstallUI(final JComponent c) { uninstallComponents(); uninstallListeners(); fDesktopIcon = null; fFrame = null; + if (textUIDrawing != SwingUtilities2.DEFAULT_UI_TEXT_DRAWING + && textUIDrawing instanceof UIResource) { + textUIDrawing = SwingUtilities2.DEFAULT_UI_TEXT_DRAWING; + } } protected void installComponents() { fFrame = fDesktopIcon.getInternalFrame(); fIconPane = new ScaledImageLabel();
*** 274,286 **** g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, origAA); } g.setColor(Color.black); ! SwingUtilities2.drawString(this, g, text, x, 2 + ascent); g.setColor(Color.white); ! SwingUtilities2.drawString(this, g, text, x, 1 + ascent); } public void show(final Component invoker) { final int desiredLocationX = (invoker.getWidth() - getWidth()) / 2; final int desiredLocationY = -(getHeight() + 6); --- 280,292 ---- g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, origAA); } g.setColor(Color.black); ! textUIDrawing.drawString(this, g, text, x, 2 + ascent); g.setColor(Color.white); ! textUIDrawing.drawString(this, g, text, x, 1 + ascent); } public void show(final Component invoker) { final int desiredLocationX = (invoker.getWidth() - getWidth()) / 2; final int desiredLocationY = -(getHeight() + 6);
< prev index next >