944,162 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1573
  • Java RSS
May 19th, 2007
0

How do I make Applet work smoother?

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster
Mr.UNOwen is offline Offline
127 posts
since Oct 2006
May 20th, 2007
0

Re: How do I make Applet work smoother?

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.

Reputation Points: 10
Solved Threads: 0
Junior Poster
Mr.UNOwen is offline Offline
127 posts
since Oct 2006
May 20th, 2007
0

Re: How do I make Applet work smoother?

hmm?

http://www.realapplets.com/tutorial/...Buffering.html

Essentially, what you're googling for is double buffering. In dotnet you simply just tick the double buffered option. Ho ho ho.
Last edited by iamthwee; May 20th, 2007 at 4:12 pm.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
May 20th, 2007
0

Re: How do I make Applet work smoother?

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?
Reputation Points: 10
Solved Threads: 0
Junior Poster
Mr.UNOwen is offline Offline
127 posts
since Oct 2006
May 20th, 2007
0

Re: How do I make Applet work smoother?

Never mind I figured out the value. Thanks for the help.
Reputation Points: 10
Solved Threads: 0
Junior Poster
Mr.UNOwen is offline Offline
127 posts
since Oct 2006
May 22nd, 2007
0

Re: How do I make Applet work smoother?

What was the value?
Reputation Points: 45
Solved Threads: 28
Posting Whiz in Training
Dukane is offline Offline
282 posts
since Oct 2006
May 26th, 2007
0

Re: How do I make Applet work smoother?

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.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: implemetation question regarding interfaces and classes
Next Thread in Java Forum Timeline: chats and graphs





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC