Solved

change color in titleborder

Posted on 2002-04-24
2
188 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
  • 2
2 Comments
 
LVL 92

Accepted Solution

by:
objects earned 50 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Running JavaFX on JDeveloper 12C 1 79
Java program running SQL query 5 50
running on tomcat not jboss eap 7.0 3 33
What is the use of Forwarding Class in java 1 37
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

730 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