In Net Beans, I created a jFrame form based on a simple app that I put together (you can see the original app
here). You enter a number, and it returns an element of an array. The form works, but I want to streamline the app.
First, when the output is set back to the form, I want that output to be able to use CSS styling (i.e. paragraph tags, with margins ... h3 tag formatting).
I also want the output to show a scroll bar, if the content that is outputed is too long.
And finally, the jFrame doesn't support a background image. I found a solution that uses an absolute positioned jLabel, and am able to use a background there. But the if the jlabel is larger than the image, the background color doesn't show up (even when I set it to a specific color).
See the image below, that shows the jFrame, and explains the issue...
Below is the code (Note: most of the code was generated from NetBeans when I created the jFrame form). The code I played with were lines 79-94. There is another class (in a separate file), that defines that Paragraphs class, and defines the getPara method (not needed for what I need to do).