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 147025

Summary: Wrong code formating after refractoring - renaming JPanel or JFrame components
Product: guibuilder Reporter: Martin Fousek <marfous>
Component: CodeAssignee: issues@guibuilder <issues>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Martin Fousek 2008-09-12 07:18:51 UTC
Product Version: NetBeans IDE Dev (Build 200809101401)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

Observed:
I rename some JPanel Components with the help of refractoring and the code formating is wrong.

Steps to reproduce:
1, create new Java Project
2, create new JFrame or JPanel
3, in design give any component into you JF or JP for example Button
4, create some events for your component
5, in "Source" rightclick on this line "private javax.swing.JButton jButton1;" on "jButton1" and invoke refrector->rename
6, change the name and click OK
-> the braces are on the wrong place (at the start of lines, but it could be behind one TAB)
Comment 1 Jan Stola 2008-09-12 07:41:05 UTC

*** This issue has been marked as a duplicate of 123094 ***
Comment 2 Martin Fousek 2008-09-22 07:38:54 UTC
Verified.