This is deceptively simple, I am just trying to have a background
image to a JTextArea that will line wrap its text. The line wrap
seems to be only available if a JScrollPane is wrapped around
the JTextArea, but the JViewPort of the JScrollPane turns off
the transparency of the JTextArea, blocking the image.
I have tried having the JScrollPane view the panel with the
JTextArea on the panel, but the text ceases to wrap
and the JTextArea has to be scrolled which distorts the
image.
The relevant code is:
This is all part of a JWindow that shows quotes from the ancient Greeks
over an image of the poet Homer. ImagePanel is an extension of JPanel
that has an image as a background. getNextQuote() returns a quote from
a text file.
Thanks,
Edward
image to a JTextArea that will line wrap its text. The line wrap
seems to be only available if a JScrollPane is wrapped around
the JTextArea, but the JViewPort of the JScrollPane turns off
the transparency of the JTextArea, blocking the image.
I have tried having the JScrollPane view the panel with the
JTextArea on the panel, but the text ceases to wrap
and the JTextArea has to be scrolled which distorts the
image.
The relevant code is:
This is all part of a JWindow that shows quotes from the ancient Greeks
over an image of the poet Homer. ImagePanel is an extension of JPanel
that has an image as a background. getNextQuote() returns a quote from
a text file.
Thanks,
Edward