|
-
Sep 29th, 2010, 02:29 PM
#1
Thread Starter
Fanatic Member
[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 ?
-
Sep 29th, 2010, 03:11 PM
#2
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
-
Oct 1st, 2010, 05:09 AM
#3
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|