Article View: borland.public.jbuilder.java.swing
Article #9957Re: JFileChooser: Escape from OPEN window.
From: John P. McGrath
Date: Sat, 18 Dec 1999 00:00
Date: Sat, 18 Dec 1999 00:00
24 lines
1427 bytes
1427 bytes
On Sat, 18 Dec 1999 15:00:30 +0200, Mike King wrote: > When I execute JFileChooser.showOpenDialog(this) and then choose > the ESCAPE button to terminate it, the application window (this) > is left with messy remnants of the showOpenDialog visible on it. > I've tried many ways to clean it up. No success! Can you be more specific? What sort of "messy remnants" are left? If the problem is that the portion of your window that was obscured by the dialog should have changed just as the dialog was being opened, then this is a known bug in Swing. I typically see this when a menu item causes a dialog to open, and the dialog partially covers the open menu items. When you dismiss the dialog, the remnants of the menu get repainted from Swing's paint buffer. I created a work-around for it, so if this is your problem, let me know and I will post the work-around. -- John P. McGrath <JPMcGrath@fast.net> <jpm@nscs.fast.net>
Technical Details
Message-ID:
<MPG.12c5d40e6418c6f2989705@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<385B856E.87C22137@metamod.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,f85086f34e7893f2 X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: JFileChooser: Escape from OPEN window. Date: 1999/12/18 Message-ID: <MPG.12c5d40e6418c6f2989705@forums.borland.com> X-Deja-AN: 562452603 References: <385B856E.87C22137@metamod.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing