• Post Reply Bookmark Topic Watch Topic
  • New Topic

colorchooser in AWT  RSS feed

 
Maarten Vergouwen
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
in my app I want a user to be able to select a color (from a Choice control).
Howevr, since I want my app to be able to run on low-spec machines, I've chosen to use AWT and not Swing.
I would however like to represent each item in the choicelist in its own color -- which does not seem to be possible with AWT.
Any suggestions?
TIA
 
Donny Nadolny
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I dont believe it's possible to do that in AWT. If you wanted, you could create your own component that would do that - add a scrollbar, have it accept an array of text and an array of colors, and display it like that. If you need more help, just post.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!