Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 13th, 2005, 09:52 AM
Registered User
 
Join Date: Oct 2005
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??????
 
Old January 10th, 2006, 05:28 PM
Authorized User
 
Join Date: Aug 2005
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

[email protected]
--------------------------
http://www.javareference.com





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 11:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.