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 116121 - [GTK] Bar image inside scrollbar is corrupted
Summary: [GTK] Bar image inside scrollbar is corrupted
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: mslama
URL:
Keywords: GTK, L&F
Depends on:
Blocks:
 
Reported: 2007-09-20 10:59 UTC by Egor Ushakov
Modified: 2008-12-22 10:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (2.74 KB, image/png)
2007-09-20 11:02 UTC, Egor Ushakov
Details
Screenshot (2.74 KB, image/png)
2007-09-20 12:45 UTC, Egor Ushakov
Details
navigator screenshot (see horizontal scrollbar corrupted) (15.47 KB, image/png)
2007-12-04 16:54 UTC, Egor Ushakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2007-09-20 10:59:03 UTC
If bar inside scrollbar is too small its image becomes corrupted.
Comment 1 Egor Ushakov 2007-09-20 11:02:05 UTC
Created attachment 49140 [details]
Screenshot
Comment 2 Egor Ushakov 2007-09-20 12:45:44 UTC
Created attachment 49154 [details]
Screenshot
Comment 3 Jiri Prox 2007-09-20 13:55:29 UTC
Does it happens also in other java application? You can test it with Notepad.jar located in ${jdk_home}/demo/jfc/Notepad
What netbeans build, jdk version and look&feel do you use?
Comment 4 Egor Ushakov 2007-09-20 14:08:42 UTC
Environment:
NB Dev 20070920
jdk 1.6
Solaris Developer Express snv_69

Look and Feel in Notepad is different from one in Netbeans.
There is no such problem there.

How can I check what look and feel is used in Netbeans?
Comment 5 Egor Ushakov 2007-09-20 17:04:36 UTC
I have not changed anything in Netbeans configuration, so that should be the default look and feel.
Comment 6 Vitezslav Stejskal 2007-09-21 12:22:31 UTC
Could you please try running Netbeans with --laf javax.swing.plaf.metal.MetalLookAndFeel switch and reproduce the
problem? It should launch Netbeans with the Metal look and feel. Thanks
Comment 7 Egor Ushakov 2007-09-21 12:45:02 UTC
With Metal Laf I do not see this problem.
Comment 8 Egor Ushakov 2007-10-03 09:08:20 UTC
In other applications with laf that looks the same as the one that netbeans use, I do not see this problem too.
It looks like bar simply has bigger minimum size there, so that pictures with top and bottom parts do not overlap.
Comment 9 jrojcek 2007-12-03 18:08:25 UTC
If it's an issue with GTK L&F on Solaris, then it's a higher priority. We need to make sure NetBeans looks good on Solaris. We're actually planning to do a review 
of the implementation to make sure that NB L&F is consistent with the Solaris L&F theme.
Comment 10 Vitezslav Stejskal 2007-12-04 09:07:54 UTC
Does this actually affect all scrollbars in Netbeans or is it only in the editor panes?
Comment 11 Egor Ushakov 2007-12-04 09:41:46 UTC
As far as I can see - all scrollbars in Netbeans in any place
Comment 12 Egor Ushakov 2007-12-04 16:51:49 UTC
The easiest way to reproduce it:
 - open any java file
 - open Navigator window
 - try to reduce width of the Navigator window (drag window border)
 - when width is reduced you will see horizontal scroll bar corrupted

This happens to any scroll bar if content size is too large.
(see screenshots attached)
Comment 13 Egor Ushakov 2007-12-04 16:54:33 UTC
Created attachment 53858 [details]
navigator screenshot (see horizontal scrollbar corrupted)
Comment 14 Egor Ushakov 2008-01-25 12:57:08 UTC
I tried to create simple application with this (GTK) LAF and it works the same (scroll bars are corrupted).
However adding:

UIManager.put("ScrollBar.minimumThumbSize", new Dimension(27,27));

Solves this problem.
Please!!! Add this parameter if Netbeans use GTK LAF and fix this problem once and for all!
Comment 15 Egor Ushakov 2008-01-25 15:36:47 UTC
Maybe this can be simply added to GtkLFCustoms.
Comment 16 David Simonek 2008-01-28 21:46:15 UTC
Passing to Marek to check suggested fix on Solaris with GTK and Nimbus theme - if I understood properly where the
problem is. Thanks Marek.
Comment 17 Egor Ushakov 2008-02-05 09:41:49 UTC
That would be great!
Comment 18 mslama 2008-02-20 20:05:52 UTC
Does it happen with latest JDK 6u4? IIRC this problem was reported against JDK/Swing/GTK and fixed already. I will try
to find out issue number tomorrow.
Comment 19 mslama 2008-02-21 09:44:24 UTC
See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6478904. It looks like the same issue as you use JDK 6. If it
happens with latest JDK 6u4 please reopen and I will file new issue against JDK.
Comment 20 mslama 2008-02-21 09:44:39 UTC
See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6478904. It looks like the same issue as you use JDK 6. If it
happens with latest JDK 6u4 please reopen and I will file new issue against JDK.
Comment 21 Egor Ushakov 2008-02-21 10:49:32 UTC
I confirm that it works with 6u4