A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide
this week in the
Swing / AWT / SWT
Text Area with images
Joined: Jan 27, 2006
Feb 27, 2006 07:37:00
I want to display, text along with images, line by line, with different portions of text with different fonts, and the images at various positions in the line. Which gui component should I use?
I am building a chat application, wherein I need to display the messages from the users, with the emoticons, line by line.
I have seen
but it only gives the method:
insertComponent( Component c )
But when I dont know how to display line by line.
is the solution, then kindly explain to me how to use it or send me a link where this information available.
Joined: Aug 21, 2004
Feb 27, 2006 13:36:00
Here is an example from sun
I agree. Here's the link:
subject: Text Area with images
colored text and images in chat message area
Scrolling of the components in AWT
css in JTextPane using swing1.1
displaying words in different fonts or colors in a textarea
Continues Characters in JTextPane
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015