I will not meter my code that exceeds 2000 lines but I will summarize, I'm fine detail and I would be very clear, here is my part of code
My problem as I told you when I typed in the txt the JspPan re-sizes and I have no idea how it behaves like that.
JFrame frm = new JFrame();
JPanel pan = new JPanel();
JScrollPane jsppan = new JScrollPane();
jsppan.setBounds(62, 72, 820, 500);
JTextPane txt = new JTextPane();
JPanel PaneauPrincipal = new JPanel();