[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] RFC: MetalFileChooserUI
From: |
Lillian Angel |
Subject: |
Re: [cp-patches] RFC: MetalFileChooserUI |
Date: |
Thu, 12 Jan 2006 16:55:04 -0500 |
On Thu, 2006-01-12 at 21:45 +0100, Mark Wielaard wrote:
> Hi,
>
> The JFileChooser was giving NullPointerExceptions for me when resizing
> the window or when viewing a directory with few items. What happens is
> that the BasicDirectoryModel will give null as element after the end of
> list. The MetalFileChooserUI FileRenderer would try to get a name and
> icon for this "null" file which fails. This patch makes sure an empty
> name and no icon are rendered.
>
> 2005-01-12 Mark Wielaard <address@hidden>
>
> * javax/swing/plaf/metal/MetalFileChooserUI.java
> (FileRenderer.getListCellRendererComponent): Set empty name and null
> icon when File is null.
>
> Is this an acceptable way to fix this?
Looks fine.
Thanks for fixing this!
Lillian