This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I'm new here and I need some help with an Applet that I'm writing. Its a very basic applet that I'm writing just to help myself learn more java. I'm having a problem with implementing Double Buffering. The applet just displays nothing at all, just a white screen, when I run it. Could some one plz have a look at the code and help me out. I'm sure there is something silly that I'm missing. Here's the source:
Also any general help will be appreciated as I'm sure my programming style needs work :roll: Also I haven't included any of the classes that this applet uses as I don't think that they are needed (If they are I'l post them) Thanx in advance
One possible problem is initializing offscreen in the init method. There may not be any size info or graphics context available unitl the Applet has been realized, ie, made visible. The size method is deprecated, see the method detail in the Component api. Here are some suggestions/possibilities in uncompiled pseudo–code:
Joined: Mar 12, 2006
Thanx man, I'l try your suggestions as soon as I get Home (or get to a computer with Eclipse ) I'l let you know how it went as soon as I get to test it out.