![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
hmmm...just by returning true in isDoubleBuffered() would actually double buffer graphics for me? thought I had to actually enable it or something....I'm forced to use Panel in java.awt because the package I have to use is implemented in java.awt. I tried adding Panel into JPanel in javax.swing which already double buffers thing by default. I can't get this way to work so. I'll try overriding isDoubleBuffered..... Thanks, Jun
> > Thanks, > > Jun > *snip* > Returns true if this component is painted to an offscreen image ("buffer") that's copied to the screen later. Component subclasses that support double buffering should override this method to return true if double buffering is enabled. > well, i haven't used this option yet, but if i'm not mistaken, u would have to override this method in your subclass to return true coz it returns false by default. just add a > public boolean isDoubleBuffered() > in your class i guess.
Replies:
|
Sponsored Links
|