Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / February 2004

Tip: Looking for answers? Try searching our database.

How to apply double buffering to applet?

Thread view: 
Percy - 01 Feb 2004 21:13 GMT
I have an applet that flickers on the page.
How do I eliminate the flicker?
I don't understand how to implement the double buffering code in the
applet.

Here is the source code I have so far.
I added a public void line, but I obviously did not do it right.

<p align="center"><a href="index.html">
<applet code="fphover.class" codebase="./" width="150" height="69">
 <param name="color" value="#000080">
 <param name="hovercolor" value="#0000FF">
 <param name="image" valuetype="ref" value="welcome2.gif">
 <param name="font" value="Dialog">
 <param name="fontsize" value="14">
 <param name="fontstyle" value="bold">
 <param name="text" value="">
 <param name="textcolor" value="#FFCC00">
 <param name="url" valuetype="ref" value="index.html">
 <param name="hoverimage" valuetype="ref" value="welcome2.gif">
 <param name="sound" valuetype="ref" value="welcmlw.au">
 <param name="hoversound" valuetype="ref" value="welcmlw.au">
 <param name="effect" value="glow">
 public void update (Graphics g) { paint(g); <font
color="#660066">}</font>

</applet>

Thanks
Ryan Stewart - 01 Feb 2004 23:43 GMT
> I have an applet that flickers on the page.
> How do I eliminate the flicker?
[quoted text clipped - 25 lines]
>
> Thanks

Say what? Are you serious?
Percy - 02 Feb 2004 00:09 GMT
I just don't have a clue how to apply it.

>> I have an applet that flickers on the page.
>> How do I eliminate the flicker?
[quoted text clipped - 27 lines]
>
>Say what? Are you serious?
Andrew Thompson - 02 Feb 2004 02:35 GMT
"Percy" ...
> "Ryan Stewart"
> >"Percy" ...
> >> I have an applet that flickers on the page.
> >> How do I eliminate the flicker?
> >> I don't understand how to implement the double buffering code in the
> >> applet.
....
> >>   <param name="effect" value="glow">
> >>   public void update (Graphics g) { paint(g); <font
> >> color="#660066">}</font>
> >>
> >> </applet>
...
> >Say what? Are you serious?

> I just don't have a clue how to apply it.

That is _very_ apparent Percy.  How did you
get this far and yet still believe you could put java
code in the html tag and expect it to work?

You might get more serious responses if
you post over at
http://groups.google.com.au/groups?group=comp.lang.java.help

FWIW, there are many examples of
Double Buffering available on the internet,
for one of these you might check..
http://www.physci.org/launcher.jsp#DoubleBufferedAnimateFrame

HTH

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology
Ryan Stewart - 02 Feb 2004 02:38 GMT
*fixed top post*

> >> I have an applet that flickers on the page.
> >> How do I eliminate the flicker?
[quoted text clipped - 29 lines]
> >
> I just don't have a clue how to apply it.

Yeah, obviously. You didn't post source code. You posted an html file. You
are either a troll or totally clueless about applets. Get a Java book and/or
visit:
http://java.sun.com/docs/books/tutorial/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.