Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

very urgent... displaying text and image together  RSS feed

pankaj bansal
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
[This message has been edited by pankaj bansal (edited September 16, 2001).]
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!