Can't change background colour

Hi I can't set the background via .setBackground() method on my JLabel.
I'm painting in it via Graphics cast to Graphics2D, but would first like to set the background to white.
I have tried setting the background of the JLabel, Graphics, Graphics2D...
Any ideas ?
thanks

A JLabel is normally transparent so you can't see its background. If you do setOpaque(true) on it, then you can see its background and set it to be whatever colour you like.

Similar Messages

  • Just uploaded iso7 , . . .hate it!  Can you change background colours?  How do you add a new item/activity to the schedule? In notes the font has changed, can I change it back and the link colour is now yellow instead of blue, can I change it?  Thanks

    Just uploaded iso7 , . . .hate it!  Can you change background colours?  How do you add a new item/activity to the schedule? In notes the font has changed, can I change it back and the link colour is now yellow instead of blue, can I change it?  Yellow on white is harder to read. Thanks

    Another question. How do you bookmark something.  It was so easy before, why did they change it?  Can I uninstall it?

  • How can we change background colour for number of photos which are in a folder?

    how can we change background colour for number of photos which are in a folder?

    Same for you please show an example. Also it is wise to create your own thread. Keep it in mind next time.

  • Can I change background colour of toolbar?

    Is it possible to change the colour or content of the mainly black navigation bar at the very top of the new Firefox 4 Mac? As an artist I have a dark grey desktop, and this bar, with 'engraved' text, is almost invisible against it!
    I look forward to your reply, as after many years I may have to switch to Safari. . . (I have searched Google for an answer, with no success.)

    Yes, I eventually worked that out myself, but thanks! But why is it so difficult to find such information. . .

  • Can you change background colours on new iOS without having to invert colours?

    I suffer from visual migraines and the new colours on this upgrade are seriously affecting me. I can barely look at the phone without becoming ill. The only semi solution i can find at the moment is to invert the colours to make the screen darker, but this also inverts everything else -pictures, apps. Etc. surely there must be a way. I only bought an iphone, which as we all know aren't cheap, because it was user friendly. Now I can barely use it without suffering! It's quite disappointing to think that Apple didn't consider customers like myself when designing this new upgrade!?
    Please tell me I haven't wasted a fortune!?!
    Also this is the second time I've had to write this because the first time I moved the screen to read what I'd written and it took me back a step as I moved the screen a tiny bit too quick.....another feature that wasn't thought about thoroughly.

    I have the same complaint...I've got eye problems and have already adjusted the font size.
    Why all the freakin' white...and light grey font.. I still have the iphone 4s and IOS7 looks like crap on the older phone..
    I want MORE customization APPLE!....GET IT!  OR I WILL switch to another phone vendor.. and I've used Apple for years.

  • Why can't i change background colour and choose different themes in iphoto 9.4.3?

    I am trying to create an iphoto book as I have done in the past. I am now using iphot 11  9.4.3 and it doesn't give me different themes and I can't change background colours in the book like I can with 9.4.2

    It looks like you'll have to reinstall iPhoto go get the themes back.  To reinstall iPhoto:
    On all Macs running Snow Leopard or Earlier
    1 - delete the current application and, , all files with "iPhoto" in the file name with either a .PKG or .BOM extension that reside in the:
    (10.5 and earlier) - HD/Library/Receipts folder 
    or from the
    (10.6) - /var/db/receipts/  folder
    On all Macs with Lion or Later Pre-installed
    Deleting receipts is not necessary if your Mac came with Lion or later preinstalled.
    Finally re-install iPhoto from the source it came from originally:
    1 - (10.6 or earlier) from the disks that came with the Mac  or an iLife disk.
    2 - (10.7 or later) from the App Store .
    OT

  • I can't change the colour of linked text?

    I have a black background on the side of my web page containing the menu bars which requires the link text to be white so it can be
    seen. I also have it set to change to yellow when you hover over it.
    The problem is that this setting seems universal throughout the website and I cannot get the links in general text (such as 'contact
    us' links, etc) on each page to change colour - they default to white which doesn't show up as the background is also white.
    i have tried creating a CSS rule for links in the body of a page but to no avail.
    Can I change the colour of links on different parts of the website?
    I am relatively new to dreamweaver with little knowledge of CSS, etc but I'm sure this must be possible.

    Yes it is possible to have differen coloured links..
    You need to look at Pseudo-classes / descendant selectors:
    http://www.thepattysite.com/linkstyles1.cfm
    http://www.projectseven.com/tutorials/pseudoclasses/index.htm
    Descendant selectors:
    http://www.projectseven.com/tutorials/css/pseudoclasses/page3.htm
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/
    http://twitter.com/nadiap

  • How to change Background Colour in IC Web Client !

    Hi,
    How to change Background Colour in IC Web Client ?
    The desired option is to have a choice of colours based on user. Is it possible?
    Regards.

    Hi,
    May I know if this is the right place to post questions on IC Web Client?
    So far I have not succeeded in getting responses to any of my questions.
    Is there any other forum where i can post questions related to this topic.
    Regards.

  • How to Change Background Colour in Q10?

    Is there a way to change background colours for Contacts and Calendar from dark to white in Q10?  Thanks.

    Good day
    Welcome to BB forums
    I don't know what you mean for contact color but here is the info for Calendar info you asked for! 
    Change the color for a calendar
    Each calendar that you add to your device is assigned a color to help you differentiate between events. You can customize the colors of your calendars to suit your taste.
    In the Calendar app, swipe down from the top of the screen.
    Tap  Settings > Calendar Colors.
    Tap a calendar.
    Tap a color.
    Want to contract me? You can follow me on Twitter @RobGambino
    Be sure to click Like! for those who have helped you.
    Click Accept as Solution for posts that have solved your issue(s)!

  • Changing background colour

    Is it possible to change background colour of images?

    Welcome to the forums.
    There are a few great how to videos here
    http://www.apple.com/aperture/how-to/#video-adjustmentbrushes
    I have a feeling that this particular video may have the answer you are looking for.
    If this is not what you mean can you elaborate a little on your question please.
    Tony

  • Change background colour IOS 7 messenger

    Is there a way to change background colour in messenger to a less glaring white?

    You're welcome. Wish I had better news. You can adjust some of the contrast,text size,and bold text under settings general,accessibility. But that wouldn't address the background color itself.

  • How can I change the colour of an iCal calender on the iPhone?

    I have two iCal calendars on my iPhone that sync to google. It works fine with push but both of hem has the same colour. That makes it hard to see the diference.
    How can I change the colour?
    I am syncing to outlook so I don't have iCal on the statonary.

    I looked into this before, and at the moment there is little you can do to customize the inputrender tag, short of subclassing it and adding the functionality you require

  • IBooks Author : How do I change background colour of a Chapter ?

    iBooks Author :
    How do I change background colour of a Chapter  e.g.  Recipe Standard Template is  Green I would like to change it to   ...
    How do I do that ?

    See iBA Tips and Tricks 01 / How to change page background color

  • Can I change background of program with a desired picture?

    Hi
    Can I change background of program with a desired picture? how?
    Solved!
    Go to Solution.

    Hi behzad,
    to requote my message #2: Right-click the right window scrollbar (VI in edit mode) and select "properties"…
    What don't you understand of this?
    When you don't trust me you should read the LabVIEW help on this topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Can I change background with Lightroom?

    Can I change background with lightroom?? Please help me. Thank u

    Hi behzad,
    to requote my message #2: Right-click the right window scrollbar (VI in edit mode) and select "properties"…
    What don't you understand of this?
    When you don't trust me you should read the LabVIEW help on this topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • Setting up C340 20" non touch all in one pc/backup questions

    Hello there I have just bought two C340's and I am nervious about setting them up, I have gone through the prompts and it says I am up and running now.  But as it came with windows 8 preinstalled I don't know if I should be backing up Windows 8?  I s

  • Alpha Channel Settings keep reverting back to "Ignore"

    Hey All, Just diving into FCPX and I had a question about the alpha channel. After finding the Alpha setting in the inspector, I switched to it premultiply. However, upon clicking out of it, the inspector reverts back to "ignore alpha." It does this

  • @MDSHIFT for future

    i've been successful in using @MDSHIFT fwhen going backwards in the "Years" dimension, but i can not get it to go forward to the next year in the year dimension. i've read the doc and it says it's similar to PRIOR but, doesn't really say for next. so

  • Doubt about abap dynamic with performs.

    Good Morning Gurus. 1-I have the tables of price in internal table ( t_a530 , T_a951 ... etc ). 2- I need filter data by field datbi and datab. 3-Can I create a perform to pass  a table and after pass other table with other format to taht same perfor

  • Powerbook won't wake up from sleep mode

    Contrary to all the problems posted here of PBs unexpectedly beeing sent to sleep, my PB occurs to have a contrary problem for which I couldn't find a solution for. When it is in sleep mode I can't awake it, neither by opening the lid nor pressing a