Results 1 to 3 of 3

Thread: [RESOLVED] setBackground

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Resolved [RESOLVED] setBackground

    i found a link: http://mindprod.com/jgloss/contentpane.html this is what i want to do, but, how can i use a specific RGB code like 23,21,21 or HEX #171515 ?

  2. #2
    PowerPoster kfcSmitty's Avatar
    Join Date
    May 2005
    Posts
    2,248

    Re: setBackground

    Just a guess but, based on the link you provided and the below link, you would probably do something like this

    Code:
    Color customColor = new Color(255,255,255);
    contentPane.setBackground(customColor);
    http://download.oracle.com/javase/1....awt/Color.html

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2008
    Posts
    1,023

    Re: setBackground

    it works perfectly, thanks.
    Last edited by Justa Lol; Oct 1st, 2010 at 08:05 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width