Canvas « JScrollPane « Java Swing Q&A





1. Canvas in JScrollPane only repaints when a scrollbar is at most extreme point    stackoverflow.com


I'm working on a game project for myself to improve my Java skills and I today I've hit a problem I cannot seem to solve with the aid of the internet. ...

2. problem in setting scrollpane for canvas    stackoverflow.com

In the below program I want to zoomin and zoomout the image which is selected by the user.the problem is that when I zoomin or zoomout the image by clicking on ...

3. Canvas in JScrollPane    coderanch.com

I have the same problem still. I have a panel, whose layout is GridLayout, that contains Canvas Objects, each in its own new JPanel. All of the canvas objects are lined in one column, using the GridLayout. New canvas objects can be added dynamically to the panel, at the bottom. Now, this panel is contained in a JScrollPane. As long as ...

4. JScrollPane and Canvas problem    coderanch.com

Hi! I have a panel, whose layout is GridLayout, that contains Canvas Objects, each in its own new JPanel. All of the canvas objects are lined in one column, using the GridLayout. New canvas objects can be added dynamically to the panel, at the bottom. Now, this panel is contained in a JScrollPane. As long as there is no need for ...

5. Text canvas vertical scroll    coderanch.com

Hello, I have an application that draws strings of text on a canvas doing word wrapping and breaking whenever necessary. Canvas' height is initially zero and grows as strings are drawn onto it. The final canvas' height is calculated as a last step of the paint() method. Vertical text scrolling has to be implemented as well, for which purpose I'm using ...

6. scrollbars for a canvas..    coderanch.com

7. Adding a Canvas to the JScrollPane    coderanch.com

8. Canvas and JScrollPane...    forums.oracle.com