[platform-dev] Re: Performance issue with OutlineView

  • From: "frederic.deniger" < >
  • To:
  • Subject: [platform-dev] Re: Performance issue with OutlineView
  • Date: Fri, 23 Nov 2012 03:24:01 -0500

Here is a"feedback" of the Netbeans profiler ( an image is attached) . 
http://forums.netbeans.org/files/synth_137.png
Maybe YourKit will be more accurate :)


The problem could come from:
javax.swing.plaf.synth.SynthTableUI.update(JComponent)
and 
PropertyPanel.paint(java.awt.Graphics)

In the comment of the method PropertyPanel.paint there is a comment 
concerning Synth and a specific behavior is implemented:


Code:

public void paint(Graphics g) {
        if (isGtk) {
            //Presumably we can get this fixed for JDK 1.5.1
            Color c = getBackground();

            if (c == null) {
                c = UIManager.getColor("control"); //NOI18N
            }

            if (c == null) {
                c = Color.LIGHT_GRAY;
            }

            g.setColor(c);
            g.fillRect(0, 0, getWidth(), getHeight());
        }

        super.paint(g);
    }



AFAIK, overriding the paint method is not the best solution:the method 
paintComponent  is a better candidate... But there must be a good reason...




Attachments: 
http://forums.netbeans.org//files/synth_137.png



[platform-dev] Re: Performance issue with OutlineView

(continued)

[platform-dev] Re: Performance issue with OutlineView

imavroukakis 11/22/2012

[platform-dev] Re: Re: Performance issue with OutlineView

Geertjan Wielenga 11/22/2012

[platform-dev] Re: Re: Performance issue with OutlineView

Geertjan Wielenga 11/22/2012

[platform-dev] Re: Performance issue with OutlineView

imavroukakis 11/22/2012

[platform-dev] Re: Performance issue with OutlineView

Frédéric Deniger 11/22/2012

[platform-dev] Re: Performance issue with OutlineView

Frédéric Deniger 11/22/2012

[platform-dev] Re: Performance issue with OutlineView

imavroukakis 11/22/2012

[platform-dev] Re: Performance issue with OutlineView

imavroukakis 11/22/2012

[platform-dev] Re: Performance issue with OutlineView

frederic.deniger 11/22/2012

[platform-dev] Re: Performance issue with OutlineView

Johannes Boesl 11/22/2012

[platform-dev] Re: Performance issue with OutlineView

frederic.deniger 11/23/2012

[platform-dev] Re: Re: Performance issue with OutlineView

Frédéric Deniger 11/23/2012

[platform-dev] Re: Re: Performance issue with OutlineView

Johannes Boesl 11/23/2012

[platform-dev] Re: Re: Performance issue with OutlineView

Frédéric Deniger 11/23/2012

[platform-dev] Re: Re: Performance issue with OutlineView

Frédéric Deniger 11/23/2012

Project Features

Project Links

About this Project

Platform was started in November 2009, is owned by Antonin Nebuzelsky, and has 138 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close