• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextPane Image icon HELP :S

 
Jamie Vaugh
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been able to add an icon to the first character of every line, but I need my JTextPane to replace a segment of a String for example "" with an icon 'smiley face'.

I don't except people to give me a direct answer but it would be great for any helping information.

Thank you.
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see why adding an Icon in the middle of a line is any different than adding one at the start, so I don't understand the question or the problem.
 
Jamie Vaugh
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because, I'm basically wanting to add smilies to a JTextPane so it replaces a String with an icon, so overall I need to add icons with a posion of where its added to JTextPane.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!