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 67037 - [50cat] Arrows are not painted correctly with looks.jar
Summary: [50cat] Arrows are not painted correctly with looks.jar
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: David Simonek
URL:
Keywords: L&F
Depends on:
Blocks:
 
Reported: 2005-10-18 11:01 UTC by ehartmann
Modified: 2008-12-22 17:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (68.15 KB, image/png)
2005-10-18 11:01 UTC, ehartmann
Details
Fixes this issue by restoring Composite before painting the button. (833 bytes, patch)
2005-10-18 11:50 UTC, golovnin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ehartmann 2005-10-18 11:01:09 UTC
[ JDK VERSION : 1.5.0_05 ]

When using looks.jar (http://looks.dev.java.net), the arrows at the top right are not painted correctly.

I've reported this to the looks team and they diagnose that the problem is in Netbeans code.

https://looks.dev.java.net/issues/show_bug.cgi?id=64

I'll attach a screenshot
Comment 1 ehartmann 2005-10-18 11:01:35 UTC
Created attachment 26074 [details]
Screenshot
Comment 2 golovnin 2005-10-18 11:48:53 UTC
The problem seems to be in the #paintComponent(Graphics) method
of the class BasicScrollingTabDisplayerUI#TimerButton
in the package org.netbeans.swing.tabcontrol.plaf.

I have created a small patch that seems to fix this issue.
I haven't tested this patch with other L&f's.
Comment 3 golovnin 2005-10-18 11:50:44 UTC
Created attachment 26075 [details]
Fixes this issue by restoring Composite before painting the button.
Comment 4 ehartmann 2005-10-18 12:42:18 UTC
I confirm that the patch works. Thanks!
With this patch, I did not observe any problems with metal l&f under linux.
Comment 5 golovnin 2005-10-20 20:10:24 UTC
Assigned to Tim as the author of the class BasicScrollingTabDisplayerUI#TimerButton.
Comment 6 David Simonek 2005-10-21 15:32:10 UTC
I'm now maintaing parts of code what Tim wrote, so I'm confirming patch is OK
and I commited it to the cvs:

Checking in BasicScrollingTabDisplayerUI.java;
/cvs/core/swing/tabcontrol/src/org/netbeans/swing/tabcontrol/plaf/BasicScrollingTabDisplayerUI.java,v
 <--  BasicScrollingTabDisplayerUI.java
new revision: 1.7; previous revision: 1.6

Thanks for the patch!
Comment 7 David Simonek 2005-10-21 15:33:51 UTC
fixed.
Comment 8 ehartmann 2006-01-19 13:22:10 UTC
Verified in Netbeans 5.0 RC1.