When we created animated applications in an Applet
(e.g. a ball moving from 1 position to another)
we called the repaint() method to refresh the screen.
When I do the same in java applications(using Frame and Panel),
I am unable to refresh screen.
(translated from text speech)
see http://mindprod.com/jgloss/textspeak.html for why you should
avoid using. it.
Are you tying up the main thread? It needs to be doing nothing, not
even sleeping, to get a chance to service the enqued repaint request.
See http://mindprod.com/jgloss/repaint.html and follow links.
Sorry for the lateness. My newsservers keeps rejecting posts sometimes
for days before accepting them.
--
Roedy Green Canadian Mind Products
The Java Glossary http://mindprod.com
.
Re: Refresh problem ... a refresh from the toolbar should repaint each page within each ... If there is a frame containing a frame, ... page again which has the original frameset, which points at the login page. ... (microsoft.public.windows.inetexplorer.ie6.browser)
Re: Real time data on web page ... There is no direct way for it to send refresh data to you. ... Good browsers on fast hardware have less of a problem here, but it can still be annoying. ...Frames are part of the HTML standard, and have been so for a good many years. ... There is certainly good reason for not using more advanced features than necessary - a site should not use Java unless absolutely unavoidable, it should ensure that it works fine without Javascript enabled, it should *always* avoid browser-specific code or platform specific features like ActiveX, and be usable in pure text mode. ... (comp.arch.embedded)
Re: [REPOST] java.awt.Image problem ...>>refresh only when a change has taken place, ... Also iconizing it and refocusing it will repaint.... Do you mean to say that the display looks ... > and it was unnecessary since my ticker repaints the whole area. ... (comp.lang.java.programmer)
Re: Real time data on web page ... HTTP is a stateless protocol - you ask for a web page, you get it back - end ... and then refresh the page fields via the DOM. ... I hate frames, and they are not done on ... If you decide to go for Java, make sure that users have can use the ... (comp.arch.embedded)
Re: Real time data on web page ... HTTP is a stateless protocol - you ask for a web page, you get it back - end of story. ... To leave the page intact, but to update some part of it, requires a separate connection which can talk to the server, retrieve new data, and then refresh the page fields via the DOM. ... It is also possible to use an invisible frame which is refreshed to hold Javascript code which then updates the other frames.... If you decide to go for Java, make sure that users have can use the system without Java, and don't start up a Java applet without a warning - not everyone likes Java, or has it enabled. ... (comp.arch.embedded)