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 257052 - Nimbus LAF, Slider disappear
Summary: Nimbus LAF, Slider disappear
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 8.1
Hardware: PC All
: P1 normal with 1 vote (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
: 256668 258068 258290 258525 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-12-08 12:40 UTC by MichaelChow
Modified: 2016-05-18 01:48 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Pictures to Descripte the bug (332.50 KB, application/octet-stream)
2015-12-08 12:40 UTC, MichaelChow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MichaelChow 2015-12-08 12:40:11 UTC
Created attachment 157721 [details]
Pictures to Descripte the bug

I have been using Netbeans for more than 3 years and I'm fans of it. But there is a little bug which always make me feel really terrible, which you can see in the attachment. Briefly,when I use Nimbus LAF,if the number of lines in a file or number of lines in the console is too large(even there is nothing in the console) then the slider will missing, it sometimes make us very inconvenient.As far as I'm concerned,you're supposed to set a minimum size of the slider when the users are using Nimbus LAF, and it maybe like below:

LookAndFeel lookAndFeel = UIManager.getLookAndFeel();
UIDefaults defaults = lookAndFeel.getDefaults();
defaults.put("ScrollBar.minimumThumbSize", new Dimension(20, 20));

Please fix this little bug as soon as possible,thank all of you a lot~
Comment 1 Jiri Prox 2015-12-09 11:59:12 UTC
Try upgrading your JDK, this should be fixed in 1.8.0_66

Relate issue in JDK
https://bugs.openjdk.java.net/browse/JDK-8134828
Comment 2 MichaelChow 2015-12-10 04:05:56 UTC
(In reply to Jiri Prox from comment #1)
> Try upgrading your JDK, this should be fixed in 1.8.0_66
> 
> Relate issue in JDK
> https://bugs.openjdk.java.net/browse/JDK-8134828

So I changed my JDK to the latest(JDK 1.8.0_66), but it doesn't work.
Comment 3 Miloslav Metelka 2016-02-09 10:19:50 UTC
> (In reply to Jiri Prox from comment #1)
> > Try upgrading your JDK, this should be fixed in 1.8.0_66
> > 
> > Relate issue in JDK
> > https://bugs.openjdk.java.net/browse/JDK-8134828
> 
> So I changed my JDK to the latest(JDK 1.8.0_66), but it doesn't work.

I was unable to reproduce in my original JDK 1.8.0_45 so I've installed 1.8.0_74 and I'm also not able to reproduce the bug. I did not test on 1.8.0_60 where the bug originated (according to the https://bugs.openjdk.java.net/browse/JDK-8134828)

MichaelChow: could you please attach your messages.log file from the run on the 1.8.0_66 ? Thanks.
Comment 4 Jiri Prox 2016-02-24 13:03:09 UTC
*** Bug 258068 has been marked as a duplicate of this bug. ***
Comment 5 Jiri Prox 2016-02-25 16:50:02 UTC
*** Bug 256668 has been marked as a duplicate of this bug. ***
Comment 6 Jiri Prox 2016-03-14 15:04:49 UTC
*** Bug 258290 has been marked as a duplicate of this bug. ***
Comment 7 Jiri Prox 2016-03-29 13:55:50 UTC
*** Bug 258525 has been marked as a duplicate of this bug. ***
Comment 8 Miloslav Metelka 2016-05-17 10:15:39 UTC
Although we are unable to reproduce the problem I have added the extra code since there are duplicate issues.
The code can't be added into EditorModule class since it seems that the L&F is not initialized yet and the lookAndFeel.getDefaults() throws the same exception like in issue #255514 on GTK L&F (the method is supposed to be called by UIManager only according to its javadoc).
So the extra code is added into a static block within NbEditorKit class.

http://hg.netbeans.org/jet-main/rev/19f88ad53b4c
Comment 9 Quality Engineering 2016-05-18 01:48:04 UTC
Integrated into 'main-silver', will be available in build *201605180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/19f88ad53b4c
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #257052 - Nimbus LAF, Slider disappear.