Resize « JTextPane « Java Swing Q&A





1. What is the easiest way to add resizable image to a JTextPane    stackoverflow.com

I want to add an image to a JTextPane in Java. But on runtime the user must have the ability to resize and drag the image through the textpane. I find ...

2. Resizing a JTextPane    forums.oracle.com

Hey all, thanks for the help so far. This question is annoying me because I remember seeing this somewhere in the API, but I have checked again and can find it nowhere. How do I write a listener for when a JTextPane is resized? Ie. when the JTextPane is resized, a method is called to do something. Thank-you in advance.