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 123951

Summary: [68cat] Formatting options preview should not reset scroll position when changing options
Product: java Reporter: matthies <matthies>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: REOPENED ---    
Severity: blocker CC: gtzabari
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description matthies 2007-12-13 13:18:32 UTC
When changing Java code formatting options in the Options dialog, the formatting preview's scroll position should be 
maintained when modifying options. Otherwise you have to constantly scroll to see the effect of the modifications when 
it affects some lower or right-hand part of the preview code.
Comment 1 Jiri Prox 2008-09-10 09:02:12 UTC
*** Issue 146692 has been marked as a duplicate of this issue. ***
Comment 2 Jiri Prox 2008-12-17 16:08:48 UTC
*** Issue 155674 has been marked as a duplicate of this issue. ***
Comment 3 Rastislav Komara 2009-02-03 10:52:57 UTC
Overtake.
Comment 4 Jiri Prox 2009-08-21 10:40:27 UTC
*** Issue 105313 has been marked as a duplicate of this issue. ***
Comment 5 Vitezslav Stejskal 2009-09-11 11:25:13 UTC
*** Issue 171925 has been marked as a duplicate of this issue. ***
Comment 6 matthies 2009-10-27 23:24:45 UTC
Still reproducable in 6.8 Beta.
Comment 7 Martin Balin 2016-07-07 07:16:30 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 8 _ gtzabari 2016-07-07 19:08:07 UTC
This issue is still present in dev build 201607060002 in the following cases:

1. "Tabs and Indents" section: changing any field
2. "Braces" section: Setting placement from any value to "Same Line"
3. "Comments": If you scroll to the bottom of the preview window, then toggle "format block comments" then the scrollbar moved unexpectedly. This problem (toggling settings while the scrollbar is at the bottom) seems to impact all other sections as well.
4. "Naming" section: Entering a number in "prefix" causes the wrong formatting in the Preview window instead of indicating that it is illegal for the prefix to begin with a number.
Comment 9 matthies 2016-07-18 20:00:53 UTC
Still relevant in current dev build.