Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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
Don't get me started about those stupid
subject: Text Area with images
css in JTextPane using swing1.1
displaying words in different fonts or colors in a textarea
Continues Characters in JTextPane
Scrolling of the components in AWT
colored text and images in chat message area
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014