JXLayer with JScrollPane and JTextPane
First, I had a JTextPane in a JScrollPane. The JTextPane had the with of the JScrollPane, and a height as it want. It was good.
Now, I have put the JTextPane in a JXLayer, and the JXlayer in the JScrollPane
But now the with of JTextPane is not the same as JScrollPane. If the text is short, the width of JTextPane is smaller than the scroller. If the text is long, the width JTextPane is larger than JScrollPane, there is no wrap.
How is it possible to solve that ?
Thank you for your help.