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 221144

Summary: Rendering issues in SatelliteComponent
Product: platform Reporter: arren <arren>
Component: GraphAssignee: issues@platform <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description arren 2012-10-31 07:24:09 UTC
a) SatelliteComponent does not render a background. Since it is doublebuffered, this means that one gets glitch-graphics if the scene scales to smaller than the satellite view.

b) SatelliteComponent overrides paint() instead of paintComponent().

Replace the top part of paint() thus:

    public void paintComponent(Graphics g) {

        Graphics2D gr = (Graphics2D) g;

        Dimension size = getSize();

        if (isOpaque()) {
            gr.fillRect(0, 0, size.width, size.height);

Really, the background should be rendered by a ComponentUI or something, but this at least stops the graphics glitching.
Comment 1 arren 2012-10-31 07:25:29 UTC
Pretty sure this was visual library from netbeans 7.0.x.
Comment 2 arren 2012-10-31 07:27:35 UTC
Also please make the class not final. Why is it final? Like half of visual library is final. Grrr.