Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

need help: formated text + background image + JScrollPane + Swing + LayoutManager

 
Peter Siemens
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I want to display a help window with Swing, this window should display a formated text with an image in the background and an "OK" Button down under to close the window, furthermore I need a Scrollbar to scrolldown the text.
At the moment I use an JEditorPane to load an HTML formated file which includes the background image in the source (bad because I would like to change the image by a parameter from Java). I couldn't get this working in connection with a LayoutManager to add the button.
I hope you could help me with this problem, maybe with some code too ...
Thanks
gnurl
Here the code as at the moment:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic