This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Product Version = NetBeans IDE 7.2 (Build 201207171143) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.7.0_07 Runtime = Java HotSpot(TM) Client VM 23.3-b01 http://netbeans.org/kb/docs/java/gui-filechooser.html Thanks for that helpful tutorial! When I import this Project (same, if I type everything myself), I get something like a "painting error" on the window after "RUN": a 1-line text area, that changes sizes in accordance with my dragging the handles of the window; it seems to correspond with the file-field of the file-chooser box, but it appears already BEFORE I enter anything in the FILE Menu. Same thing happens, when I run the application via "java -jar JFileChooserDemo". even on a different notebook (also Windows-XP). The rectangle disappears, once I fill the textarea with the content of an opened txt-file. It also disappears, when type some characters into the textarea and then press ENTER, but resizing the window will let it reappear. Mystic regards Walter
Created attachment 129419 [details] IDE log
Alyona, can you take a look at this?
The filechooser must not be added to the JFrame (as indicated in the tutorial and done in the downloaded example) but rather to "Other Components". I simply dragged the filechooser in the navigator to "Other Components" and it worked fine (not showing at runtime before I enter FILE and OPEN ), similar as I know it from Visual Studio.
(In reply to comment #3) > The filechooser must not be added to the JFrame (as indicated in the tutorial > and done in the downloaded example) but rather to "Other Components". I simply > dragged the filechooser in the navigator to "Other Components" and it worked > fine (not showing at runtime before I enter FILE and OPEN ), similar as I know > it from Visual Studio. Will verify it during the upcoming update of the tutorial and incorporate it into the doc.
The tutorial is updated and will go live when NetBeans IDE 7.3 is released.