Hi Tolga,
Try DisplayRenderer.setBackgroundColor(...) (DisplayRendererJ2D,
DisplayRendererJ3D) and DisplayRenderer.setForegroundColor(...) to change the
background- or foregroundcolor of your display. There is also a
setBoxColor(...) in
DisplayRenderer to set the color of the box. You can get the DisplayRenderer via
DisplayImpl.getDisplayRenderer(). If you want to change the color of your
axis use the ScalarMap.setScaleColor(...).
Cheers, Mathias
> When you use DisplayImplJ2D, by default the background is black and the
> foreground is white. How do you change the default colors? I checked out
> the docs but could not see a method to change the colors. Can anybody
> give a hint?
>
> Thanks,
>
> Tolga
>
> < < < t o l g a : | | : s a k m a n > > >
> engineer, cfd consultant
> analytic & computational research, inc -- acri
> los angeles, ca
> 310-471-3023
> tolga.sakman@xxxxxxxxxxx || www.acricfd.com
>
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
--
GMX Tipp:
Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=iso-8859-1">
<META content="MSHTML 5.50.4207.2601" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Verdana Ref" color=#000080 size=2>When you use
DisplayImplJ2D,
by default the background is black and the foreground is white. How do
you
change the default colors? I checked out the docs but could not see a
method to
change the colors. Can anybody give a hint?</FONT></DIV>
<DIV><FONT face="Verdana Ref" color=#000080
size=2></FONT> </DIV>
<DIV><FONT face="Verdana Ref" color=#000080
size=2>Thanks,</FONT></DIV>
<DIV><FONT face="Verdana Ref" color=#000080
size=2></FONT> </DIV>
<DIV><FONT face="Verdana Ref" color=#000080
size=2>Tolga</FONT></DIV>
<DIV><FONT face="Verdana Ref" color=#000080 size=2><BR>< <
< t o
l g a : | | : s a k m a n > > ><BR>engineer, cfd
consultant<BR>analytic & computational research, inc -- acri<BR>los
angeles,
ca<BR>310-471-3023<BR><A
href="mailto:tolga.sakman@xxxxxxxxxxx">tolga.sakman@xxxxxxxxxxx</A> ||
<A
href="http://www.acricfd.com">www.acricfd.com</A></FONT></DIV></BODY></
HTML>