?
Solved

change color in titleborder

Posted on 2002-04-24
2
Medium Priority
?
190 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month11 days, 21 hours left to enroll

752 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