TopComponent Opacity

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);
Comments:

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.

Posted by guest on February 08, 2012 at 12:04 AM PST #

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.

Posted by Geertjan on February 08, 2012 at 04:27 AM PST #

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

Posted by guest on June 06, 2012 at 06:45 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today