src/java.desktop/macosx/classes/sun/lwawt/LWChoicePeer.java
changeset 51911 57fa2c1c98d4
parent 47216 71c04702a3d5
child 52250 cebf87487c33
equal deleted inserted replaced
51910:4b492ccc0b71 51911:57fa2c1c98d4
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2018, 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
   133     }
   133     }
   134 
   134 
   135     @SuppressWarnings("serial")// Safe: outer class is non-serializable.
   135     @SuppressWarnings("serial")// Safe: outer class is non-serializable.
   136     private final class JComboBoxDelegate extends JComboBox<String> {
   136     private final class JComboBoxDelegate extends JComboBox<String> {
   137 
   137 
   138         // Empty non private constructor was added because access to this
       
   139         // class shouldn't be emulated by a synthetic accessor method.
       
   140         JComboBoxDelegate() {
       
   141             super();
       
   142         }
       
   143 
       
   144         @Override
   138         @Override
   145         public boolean hasFocus() {
   139         public boolean hasFocus() {
   146             return getTarget().hasFocus();
   140             return getTarget().hasFocus();
   147         }
   141         }
   148 
   142