Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Background Color for JPanel

Posted on 1998-09-19
1
Medium Priority
?
826 Views
Last Modified: 2011-10-03
I am having four panel in JTabbedPane.
I want to set different Background Color for each
Panel in JTabbedPane
how to do it?
0
Comment
Question by:geostp
1 Comment
 
LVL 3

Accepted Solution

by:
sailwind earned 20 total points
ID: 1224591
for each of the JTabbedPane, invoke:

setBackground(Color c);

to change the color.


0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

963 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