Hello,

So I created a simple game with the use of Applet and I noticed I would get lines going through it as repaint is called. Is there a way to make it work smoother or a way to have layered images so that only a few images have to refresh?

Recommended Answers

All 6 Replies

Well I tried to make a multi layered Applet, but not having much luck at it. Can anyone help? I tried to use JLayeredPane, but nothing shows up.

OOOOO.... Thanks a lot. Never thought of buffering. By the way, do happen to know how to get a transparent Color? What's the value?

Never mind I figured out the value. Thanks for the help.

Member Avatar for Dukane

What was the value?

Along with RGB there is a fourth channel called the alpha channel which decides the transparency. I guess this is what UNOwen is talking about.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.