NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Nb 8.2RC VisualLibrary Widget default background changed from White to Grey ?

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
bruehlicke



Joined: 18 Sep 2009
Posts: 201
Location: Houston

PostPosted: Sun Sep 25, 2016 8:58 pm    Post subject: Nb 8.2RC VisualLibrary Widget default background changed from White to Grey ? Reply with quote

After migrating numerous modules using Visual Library from Nb 6.5 to 8.2 (going great so far by the way !) I noticed that many of my backgrounds now are grey instead of white. First I thought it was the JScrollpane viewport not set or changed but realized it was the actual widget extending GraphScene.

Note that the documentation (http://bits.netbeans.org/dev/javadoc/org-netbeans-api-visual/org/netbeans/api/visual/widget/doc-files/documentation.html#Widget) still tells that the default background color for a Widget is Solid White - which is not true anymore.

No big deal, just wanted to share my findings in case of some poor soul out there is hunting for the location to where to set the color to white and is going mental on this.

Solution: If you have a class extending GraphScene make sure your are setting the Background to white. I did it in a constructor

this.setBackground(Color.white);
Back to top
NeilCSmith



Joined: 08 Aug 2011
Posts: 73

PostPosted: Tue Sep 27, 2016 8:44 am    Post subject: Nb 8.2RC VisualLibrary Widget default background changed from White to Grey ? Reply with quote

Hi,

On 25 September 2016 at 21:58, bruehlicke <address-removed> wrote:
Quote:
After migrating numerous modules using Visual Library from Nb 6.5 to 8.2 (going great so far by the way !) I noticed that many of my backgrounds now are grey instead of white. First I thought it was the JScrollpane viewport not set or changed but realized it was the actual widget extending GraphScene.

Note that the documentation (http://bits.netbeans.org/dev/javadoc/org-netbeans-api-visual/org/netbeans/api/visual/widget/doc-files/documentation.html#Widget) still tells that the default background color for a Widget is Solid White - which is not true anymore.

Yes, I've come across this - it actually changed in NetBeans 8.1,
presumably as part of the move to support dark themes (yet broke mine!
Smile )

Default widget foreground and background colours are now taken from
Label.foreground and Label.background colours in the Swing look and
feel. So, not necessarily grey either.

Best wishes,

Neil

--
Neil C Smith
Artist & Technologist
www.neilcsmith.net

Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo