/[classpath]/classpath/javax/swing/ImageIcon.java
ViewVC logotype

Diff of /classpath/javax/swing/ImageIcon.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by rabbit78, Wed Jul 27 12:41:33 2005 UTC revision 1.19 by fitzsim, Sun Aug 21 18:20:07 2005 UTC
# Line 302  public class ImageIcon Line 302  public class ImageIcon
302    
303    public int getIconHeight()    public int getIconHeight()
304    {    {
305        // Sun returns -1 if the image is not loaded.
306        if (image == null)
307          return -1;
308    
309      return image.getHeight(observer);      return image.getHeight(observer);
310    }    }
311    
312    public int getIconWidth()    public int getIconWidth()
313    {    {
314        // Sun returns -1 if the image is not loaded.
315        if (image == null)
316          return -1;
317    
318      return image.getWidth(observer);      return image.getWidth(observer);
319    }    }
320    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26