classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: MetalFileChooserUI editing


From: Lillian Angel
Subject: [cp-patches] Patch: MetalFileChooserUI editing
Date: Mon, 28 Nov 2005 13:32:51 -0500

Editing for the MetalFileChooser now works.

2005-11-28  Lillian Angel  <address@hidden>

        * javax/swing/JList.java
        (init): Layout should not be set to FlowLayout. JDK sets it to 
        null.
        * javax/swing/plaf/metal/MetalFileChooserUI.java
        (mouseClicked): Changed to call completeEditing when 
        double-clicked.
        (editFile): Fixed to add an action listener to the editing 
        field. Editing for filechooser now works.
        (completeEditing): Fixed renaming to create a new file object 
        and rescan the directory if renaming was successful. Added code 
        to cancel editing as well.
        (EditingActionListener): New class to listen for notify action 
        and to complete editing when enter is pressed. Otherwise, 
        editing is cancelled.
        * javax/swing/plaf/metal/MetalSplitPaneDivider.java
        (MetalDividerLayout): Changed to public.
        (MetalDividerLayout.init): Likewise.

Attachment: patch.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]