permaculture playing cards*
The moose likes Java in General and the fly likes very urgent... displaying text and image together Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "very urgent... displaying text and image together " Watch "very urgent... displaying text and image together " New topic
Author

very urgent... displaying text and image together

pankaj bansal
Greenhorn

Joined: Mar 07, 2001
Posts: 20
Hi All,
I will be thankful to all of u, if u can give me suggestions for this problem.
I want to display text and image stored in a table in HTML format in the database.
For eg.
My name is Pankaj.

The image is in another table with this name(not as a physical file).
What I'm doing is displaying it in a panel with text in JTextpane and image as label. The content type of JTextPane is text/html.
The problem comes when the text length is bigger than the textpane width and it scrolls down to second line. At this moment I can't display the image next to the end of text b'coz of textpane size.
I tried to display the text in a go but then it gives blank image icon on the screen. But I'm not able to locate the position of image on the screen overwrite image label onto it.
Please give me an appropriate solution to fix this problem.
Thanx
Pankaj
------------------
SCJP2
[This message has been edited by pankaj bansal (edited September 16, 2001).]


SCJP2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: very urgent... displaying text and image together