• Post Reply Bookmark Topic Watch Topic
  • New Topic

System Color

 
jiaonu wang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, we have an applet designed with swing. But I am not sure about how to use System color and color space. For Example, how to make swing applet to adjust its color depends on different operating system? Our applet runs well in IE and Netscape, but in Solaris system, it has color display problem. Any help will be appreciate.
thanks
 
John Zukowski
Author
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the SystemColor class to use the system colors.... What type of color problems are you having?
------------------
John Zukowski Author of "Definitive Guide to Swing for Java 2" and "Java Collections"
 
jiaonu wang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the SystemColor class to use the system colors.... What type of color problems are you having?
------------------
John Zukowski Author of "Definitive Guide to Swing for Java 2" and "Java Collections"
The problem is when our client test this swing application in their Solaris System, when open this application, the interface cannot display correctly with colors. We need a way to write some code to let this application be suitable for any platform. If using SystemColor, we need change a lot code, And we have some images in this application, how to deal with these images? The below is a paragraph my manager wrote to discribe our problem. Please give some valuable suggestions or examples.
Thanks
The problem is that the Solaris machine that we are developing our applet for is using Dome video card. This card is used in the medical field to produce high resolution "gray scale" graphics. What we are looking for is an example of altering the colorModel of the applet, so we can test different configurations on this machine. Thus, allowing us to find a viable solution to underlining video card problem. The thought is for the applet to control what colors it can use instead of the system deciding the colors.

[This message has been edited by jiaonu wang (edited May 15, 2001).]
 
John Zukowski
Author
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like whether you use the SystemColor class or anything else, you are in for alot of changes. There is no direct support for wholeheartedly changing the color model.
------------------
John Zukowski Author of "Definitive Guide to Swing for Java 2" and "Java Collections"
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!