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.

Bug 223889 - mystic text field in tutorial
Summary: mystic text field in tutorial
Status: RESOLVED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: Form (show other bugs)
Version: 7.2
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: AlyonaStashkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-16 11:07 UTC by Walter-Eder
Modified: 2012-12-25 19:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (45.41 KB, text/plain)
2012-12-16 11:08 UTC, Walter-Eder
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Walter-Eder 2012-12-16 11:07:58 UTC
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
Comment 1 Walter-Eder 2012-12-16 11:08:03 UTC
Created attachment 129419 [details]
IDE log
Comment 2 Kenneth Ganfield 2012-12-18 15:58:51 UTC
Alyona, can you take a look at this?
Comment 3 Walter-Eder 2012-12-19 08:38:58 UTC
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.
Comment 4 AlyonaStashkova 2012-12-20 07:01:42 UTC
(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.
Comment 5 AlyonaStashkova 2012-12-25 19:25:28 UTC
The tutorial is updated and will go live when NetBeans IDE 7.3 is released.