Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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: 947
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!