jdk/src/java.desktop/unix/classes/sun/awt/X11/XChoicePeer.java
changeset 28231 b608ffcaed74
parent 25859 3317bb8137f4
child 32865 f9cb6e427f9e
equal deleted inserted replaced
28230:f488c331f610 28231:b608ffcaed74
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2014, 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
   497             unfurledChoice.trackMouse(e);
   497             unfurledChoice.trackMouse(e);
   498         }
   498         }
   499     }
   499     }
   500 
   500 
   501     // Stolen from TinyChoicePeer
   501     // Stolen from TinyChoicePeer
       
   502     @SuppressWarnings("deprecation")
   502     public Dimension getMinimumSize() {
   503     public Dimension getMinimumSize() {
   503         // TODO: move this impl into ListHelper?
   504         // TODO: move this impl into ListHelper?
   504         FontMetrics fm = getFontMetrics(target.getFont());
   505         FontMetrics fm = getFontMetrics(target.getFont());
   505         Choice c = (Choice)target;
   506         Choice c = (Choice)target;
   506         int w = 0;
   507         int w = 0;