Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Peter Siemens
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 ...
Here the code as at the moment:
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!