Solved

background color and text color

Posted on 2001-08-11
1
230 Views
Last Modified: 2010-03-31
I'm writing an applet.
I'm using a GridLayout and I need:
1. to set the background to black
2. to set the text color to white (I'm using Labels in the GridLayout)
0
Comment
Question by:websolution
1 Comment
 
LVL 27

Accepted Solution

by:
rrz earned 50 total points
ID: 6376388
setBackground(Color.black);
setForeground(Color.white);
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Maven Project: Hibernate Dependencies Conflict 10 26
oracle 11g 23 84
type mismatch (Object[] to double[] 4 24
how to install java on RHEL image on EC2 4 28
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question