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.
Created attachment 120910 [details] Exception Details I got Null Pointer exception when i was drawing button near to the text field in a JDialog. The problem occurred when i was resizing button over left border of text field.
P.S. JDialog had free design layout
Can you please provide the GUI form where the exception happened, with description on how to reproduce? Thanks. The exception itself is not enough to fix the problem.
Created attachment 120915 [details] Code of JDialog Under some package within Module in NBPlatform app add JDialog, and add Pane to it. Add text field and button on pane (i added few labels at the top also) and button should be very close to the textfield. Resize button, so the "new" dimensions go over text field (button overlays the textfield)... There i got Null Pointer Exception, and every time i try i got stucked. I send you code in attachment Btw, i use JDK 1.7
Please attach also the .form file and the Bundle properties file. Thanks. I have no luck trying to reproduce the bug. Also please state what NetBeans version (or build number if it's a dev build) you use.
Created attachment 120922 [details] test case - form file
Created attachment 120923 [details] test case - java file
OK, I've found the test case after all, attached. To reproduce resize the button by its left edge over the textfield. I guess the reporter has either NB 7.1.x, or an older NB 7.2 build. In 7.1 the exception is thrown. In 7.2 there is no exception, but the button is misplaced (ends up right aligned with the textfield and overlapping it). This deserves a fix.
I use NetBeans IDE 7.2 Beta (Build 201205031832). Well i think i have scored bulls eye, because every new JDialog I create, its not a bug. Only Chat Window i send you is bugging. And i notices, when i move label "Send Message" to some other position its all ok, and when is "glued" to text field (for sending message), then Null Pointer pops out.
I've fixed the remaining problem with the misplaced component, as described above. This fix does not go to NB 7.2. The originally reported exception does not happen in NB 7.2, though, it must have been fixed with something else after beta. http://hg.netbeans.org/jet-main/rev/02e82587303b
Integrated into 'main-golden', will be available in build *201206220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/02e82587303b User: Tomas Pavek <tpavek@netbeans.org> Log: #214283: fixing incorrect component repositioning after resizing