BufferedImage « JScrollPane « Java Swing Q&A





1. What buffering strategy should I use for my 2D scrolling map?    stackoverflow.com

So, I'm creating a 2d top-down game in Java. I'm following instructions from Java 2D: Hardware Accelerating - Part 2 - Buffer Strategies to take advantage of hardware acceleration. Basically, what ...

2. Java ScrollPane on Buffered Image    stackoverflow.com

So I have 4 classes, in my paint program and I am trying to add scrollbars to the canvas so that I can scroll around, When I make my buffered Image ...

3. BufferedImage to JScrollPane    coderanch.com

Hello :-) I am really interested in this thread as I have run into similar problems I am trying to get a map of hexes drawn onto a BufferedImage 500 x 500 pixels in size, and then display this within a JScrollPane, so that this map can be scrolled by the user. My problem is that my current attempt does not ...

4. Scrolling BufferedImage    coderanch.com

OK, I will provide some details. Here is my JPanel: public abstract class SimulationView2D extends JPanel implements Observer{ protected BufferedImage canvas; protected Space2D space; private double scale = 1; private boolean grainBoundary = false; private boolean nucleons = false; public SimulationView2D(Space2D space){ this.space = space; canvas = new BufferedImage(space.getXsize(), space.getYsize(), BufferedImage.TYPE_INT_RGB); this.addMouseWheelListener(new MouseWheelHandler()); } public final void update(Observable o, Object object){ ...