This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Text Area with images Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Text Area with images" Watch "Text Area with images" New topic
Author

Text Area with images

N Ganesh
Greenhorn

Joined: Jan 27, 2006
Posts: 5
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 JTextPane but it only gives the method:
insertComponent( Component c )
But when I dont know how to display line by line.

If JTextPane is the solution, then kindly explain to me how to use it or send me a link where this information available.


N Ganesh
Mathias Nilsson
Ranch Hand

Joined: Aug 21, 2004
Posts: 367
Here is an example from sun

Sun tutorial

// Mathias


SCJP1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Text Area with images
 
Similar Threads
css in JTextPane using swing1.1
displaying words in different fonts or colors in a textarea
Scrolling of the components in AWT
colored text and images in chat message area
Continues Characters in JTextPane