The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

This topic is READ ONLY
import-bot (20211) [Avatar] Offline
[Originally posted by hly]


I have found David Geary's AWT book and look at the custom cursors section.
It mentioned: If an image passed to Toolkit.setCustomCursor() has colors whose
number is greater than the maximum cursor colors, then the color palette used
for the image will be flattened to the maximum cursor color."
I have tried to create a gif file using two of my favorite colors and make
a transparent background. But making me dispointed is I cannot get two my
favorite color, just black and white. Only black image part can be showed
black. The other colors all are showed white. I guess the java platform only
suport black and white. I don't know if there is anyway I can get red and
white two color cursor.

Thank your help very much.