src/java.desktop/macosx/classes/com/apple/laf/AquaInternalFrameDockIconUI.java
changeset 54871 c2e4aef5edf2
parent 47216 71c04702a3d5
equal deleted inserted replaced
54870:0d49e7c0b4fa 54871:c2e4aef5edf2
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   139     @Override
   139     @Override
   140     @SuppressWarnings("deprecation")
   140     @SuppressWarnings("deprecation")
   141     public void mouseEntered(final MouseEvent e) {
   141     public void mouseEntered(final MouseEvent e) {
   142         if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != 0) return;
   142         if ((e.getModifiers() & InputEvent.BUTTON1_MASK) != 0) return;
   143         String title = fFrame.getTitle();
   143         String title = fFrame.getTitle();
   144         if (title == null || title.equals("")) title = "Untitled";
   144         if (title == null || title.isEmpty()) title = "Untitled";
   145         fDockLabel = new DockLabel(title);
   145         fDockLabel = new DockLabel(title);
   146         fDockLabel.show(fDesktopIcon);
   146         fDockLabel.show(fDesktopIcon);
   147     }
   147     }
   148 
   148 
   149     @Override
   149     @Override