Here is repaired code. Now JScrollPane should be (400,400) - variable mainSize. Also I changed LayoutManager of JScrollPane to SpringLayout which is, I think, most suitable for me.
Now calling...
Type: Posts; User: brajan1984
Here is repaired code. Now JScrollPane should be (400,400) - variable mainSize. Also I changed LayoutManager of JScrollPane to SpringLayout which is, I think, most suitable for me.
Now calling...
I don't understand what You want to do...?
The goal is to make all three steps in one button click - somehow force to repaint once or wait when full repaint is finished.
First click:
Red JPanel i moving down by 50 and resizes to (1000, 300)
Second click:
Horizontal scrollbar moves to 50% of scrollbar length
Third click:
OK. I simplify the problem.
Please compile program below and tell me why program is setting correct position of JPanel and JScrollPanel scrollbars after 3 clicks of button. It should take one...
Hello! [Please go to second post in this thread first]
First of all, in attachments is SSCCE program which shows main problem.
You should complie it with (after going to folder javatest_SSCCE):...