• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

very urgent... displaying text and image together

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
Thanx
Pankaj
------------------
SCJP2
[This message has been edited by pankaj bansal (edited September 16, 2001).]
 
Straws are for suckers. Now suck on this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic