|
-
NullPointerException
Java & Double Buffering
I just wrote an Applet for a client, but whenever you move a slider, and the main canvas updates, it's flashy -- and they don't like that.
I know what I need is Double Buffering, and I read that Swing will do this for you.
Great, so I convert the whole Applet to a JApplet, using Swing components everywhere. Then, all my JPanels are created like:
paneltop = new javax.swing.JPanel(true);
where the boolean in the constructor sets "isDoubleBuffered".
My main panel actually extends JPanel, but I was sure to include this constructor, and I call it the same way:
public JJPanel(boolean isDoubleBuffered) {
super(isDoubleBuffered);
}
I must be missing something, because it's still flashing. Any ideas?
Open Source is free like a puppy is free.
It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.
Understanding Evolution
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|