Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • 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: 932
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!