wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes need help: formated text + background image + JScrollPane + Swing + LayoutManager Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "need help: formated text + background image + JScrollPane + Swing + LayoutManager" Watch "need help: formated text + background image + JScrollPane + Swing + LayoutManager" New topic
Author

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

Peter Siemens
Greenhorn

Joined: Dec 06, 2003
Posts: 1
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:
 
Don't get me started about those stupid light bulbs.
 
subject: need help: formated text + background image + JScrollPane + Swing + LayoutManager
 
Similar Threads
problem in attaching mouselistener on a imagepanel
JTextField in JScrollPane
Help building a JAR file...
problem in drawing lines on a panel
(J)ScrollPane trouble : I want to have scroll bars while the size of image get too large