[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

change color in titleborder

Posted on 2002-04-24
2
Medium Priority
?
191 Views
Last Modified: 2007-11-27
hi

i am using the codes below

m2.setBorder(BorderFactory.createCompoundBorder(
          BorderFactory.createTitledBorder("Error "),
          BorderFactory.createLoweredBevelBorder()));


How can I change the color of Error??


according to tutorial, it is based on defaults, how can I change it??
0
Comment
Question by:TLTEO
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 92

Accepted Solution

by:
objects earned 200 total points
ID: 6967102
TitledBorder title =  BorderFactory.createTitledBorder("Error ");
title.setTitleColor(Color.red);
m2.setBorder(BorderFactory.createCompoundBorder(
         title,
         BorderFactory.createLoweredBevelBorder()));
0
 
LVL 92

Expert Comment

by:objects
ID: 6967710
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

649 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