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.
Summary: | [GTK] Bar image inside scrollbar is corrupted | ||
---|---|---|---|
Product: | platform | Reporter: | Egor Ushakov <gorrus> |
Component: | Window System | Assignee: | mslama <mslama> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | CC: | dsimonek, jrojcek |
Priority: | P3 | Keywords: | GTK, L&F |
Version: | 6.x | ||
Hardware: | Sun | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Screenshot
Screenshot navigator screenshot (see horizontal scrollbar corrupted) |
Description
Egor Ushakov
2007-09-20 10:59:03 UTC
Created attachment 49140 [details]
Screenshot
Created attachment 49154 [details]
Screenshot
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? 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? I have not changed anything in Netbeans configuration, so that should be the default look and feel. 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 With Metal Laf I do not see this problem. 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. 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. Does this actually affect all scrollbars in Netbeans or is it only in the editor panes? As far as I can see - all scrollbars in Netbeans in any place 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) Created attachment 53858 [details]
navigator screenshot (see horizontal scrollbar corrupted)
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! Maybe this can be simply added to GtkLFCustoms. Passing to Marek to check suggested fix on Solaris with GTK and Nimbus theme - if I understood properly where the problem is. Thanks Marek. That would be great! 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. 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. 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. I confirm that it works with 6u4 |