X

Geertjan's Blog

  • February 7, 2012

TopComponent Opacity

Geertjan Wielenga
Product Manager

In the constructor of a TopComponent, add this:

setOpaque(false);

Then, if that doesn't work, it means that the parent of the
TopComponent also needs to have opacity set to false. So override
the "addNotify" method of the TopComponent. In that override, include this:
JComponent parent = (JComponent)getParent();
parent.setOpaque(false);

Join the discussion

Comments ( 3 )
  • guest Wednesday, February 8, 2012

    Hi

    Would you please visit following link to answer my question related to NetBeans?

    http://stackoverflow.com/questions/9189236/error-while-consuming-a-net-web-service-from-a-wsdl-in-netbeans

    Thanks in advance.


  • Geertjan Wednesday, February 8, 2012

    No, I won't. Please post your questions at dev@platform.netbeans.org, that's where I (and most other people) answer NetBeans Platform questions. Make sure the question is about the NetBeans Platform, otherwise write to nbusers@netbeans.org.


  • guest Wednesday, June 6, 2012

    Problem - Controlling the location of TopComponent.

    We are a software company and we implement Netbeans RCP Applications. We love it. Only problem we had was to control the location of the TopComponent. We create a Custom Top Component with mode as "rightHandSide" sliding window. It appears on the right hand side only the first time. When you close and open it appears on the left. Also, if you reset windows, it appears on the left again. This has been the only problem. Can you help us how to control the position ?

    Regards

    Sashi


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.