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):...
Please delete this thread
Hello everyone!
At the beggining - I'm novice in Java so my question is quite basic.
I have a problem with repainting my JPanel. I draw an image on JPanel and it doesn't appear. Picture is read...
Hello again!
Thank you for your time.
I did it! The problem lies in Netbeans designer. When I put my PicViewer into JScrollPane NetBeans is making some kind of constraints which don't allow to...
Ok. First of all sorry for break but I was defeated by flu. Now I see the world so I can continue. I won't be adding add any files now but I will try to describe my problem the best I can with code...
Hello Norm!
Thanks for the answer. I tried to run project on another computer and get error with missing PDFRenderer-0.9.1.jar library. Library is avaiable in folder dist/lib/PDFRenderer-0.9.1.jar,...
Hello everyone!
I was trying get answer on other forum but without any reaction so I decided to try here :).
I'm new in JAVA and I'm migrating from C#. I make a simple picture viewer with...