I have designed a code for JTextPane
, what I want to do is put that JTextPane
in the bottom right corner, it is is fine as long as the form isn't resized (I want the form to be resizeable) but when it is resized the JTextPane
does not move along. How can I make it stick to that right corner and move about if the form has been resized, I do not need it to cover the full contentPane. here is my code for the JTextPane
JTextPane txtpnHello = new JTextPane();
txtpnHello.setText("Hello");
txtpnHello.setEnabled(false);
contentPane.add(txtpnHello);
Thanks.