Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old October 13th, 2005, 09:52 AM
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to custom-define the default background colour

We use JEditorPane to display HTML content. If the html content is something like this:
<html>
<div style='background-colour:;'>
<p>
content goes here
</p>
</div>
</html>

Then the background colour is set to black (which is the default one if the bgcolor attribute value is null). If there is no background-color attribute, content is displyed with white background. How to change the default value for the background colour??????
Reply With Quote
  #2 (permalink)  
Old January 10th, 2006, 04:28 PM
Authorized User
 
Join Date: Aug 2005
Location: Chelmsford, MA, USA.
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Whats is the color you are trying to set. You can use the setBackground(Color) method to set the background color.

Rahul

rahul@javareference.com
--------------------------
http://www.javareference.com
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table row background colour changing meetravig Java GUI 0 September 21st, 2007 05:06 AM
how to define the default value with text control? jason_lai ASP.NET 2.0 Basics 0 June 6th, 2007 09:54 PM
Changing Fore colour and back colour darrenb Access VBA 2 May 25th, 2007 07:10 AM
Background colour/image printing ghari HTML Code Clinic 0 September 21st, 2006 01:05 PM
Setting backGround Colour of a text pazzuzu C++ Programming 0 January 21st, 2005 10:15 AM



All times are GMT -4. The time now is 06:51 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.