Symbian
Symbian OS Library

FAQ-0484 Is Toolkit.getColorModel() not supported?

[Index][spacer] [Previous] [Next]



 

Classification: Java Category: AWT
Created: 04/11/2000 Modified: 08/14/2002
Number: FAQ-0484
Platform: ER5, Symbian OS v6.0, Symbian OS v6.1

Question:
When I call Toolkit.getDefaultToolkit().getColorModel().getPixelSize() I get a null pointer exception calling "getPixelSize()". Is getColorModel() not supported?

Answer:
Toolkit.getDefaultToolkit().getColorModel() is not supported on Symbian OS v5 or v6.x and returns a null result. It is supported in v7.0 however.