Solved

change color in titleborder

Posted on 2002-04-24
2
182 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
array11 challenge 16 52
json example 39 115
firstChar challenge 13 85
Requested array size exceeds VM limit 3 50
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ā€¦
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

762 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now