• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I make/find a JTextField-like component that displays images for characters?

 
Jane Jukowsky
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a collection of images, one per character; I need to use these images in leau of a regular font, while still allowing for standard user input functions (caret, copy & paste, etc.). Is it very hard to do?
 
Brian Cole
Author
Ranch Hand
Posts: 920
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jane Dodo wrote:I have a collection of images, one per character; I need to use these images in leau of a regular font, while still allowing for standard user input functions (caret, copy & paste, etc.). Is it very hard to do?


I can think of a couple approaches. Easiest would probably be to use a JTextPane and use its insertIcon() method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!