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 / July 2007

Tip: Looking for answers? Try searching our database.

java applet to application refrshing screen

Thread view: 
HESH - 25 Jul 2007 15:32 GMT
hi all,

i've 1 Q:
whn we creatrd moving applications in applet
(ex:ball moving frm 1 position to another)
we call repaint() method.. to refresh screen
i m making same in java application's(like frame, panel)
here i m unable to refrsh screen..
the old ball is still on screen..

plz guide me on dat..

thanks..

maHESH
Andrew Thompson - 26 Jul 2007 02:40 GMT
...
>i've 1 Q:

Is that a question, or are you saying you have
some character from the James Bond series,
..or Star Trek?

>whn we creatrd ...

'when', 'created'..  please consider using a spell checker
if unsure of the language, but please take more care.

BTW - who is 'we'?  You and who else?

>...moving applications in applet
>(ex:ball moving frm 1 position to another)
[quoted text clipped - 4 lines]
>
>plz guide me on dat..

'please', 'that'.

As to your applet/application refresh problem, try
changing line 121, char 57, from a '.' to a ','.  That
should fix it.

If not, you might try posting an SSCCE* of
failing code, and assuming you can take some
more effort to spell words, I might be able to
assist further.

* <http://www.physci.org/codes/sscce.html>

Note also that the "i" should be capital "I"
when used in the word "I", or the term "I've".

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Roedy Green - 26 Jul 2007 09:40 GMT
>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.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Andrew Thompson - 26 Jul 2007 10:45 GMT
...
>Sorry for the lateness.

It seems odd you should mention that, given it is only just
over 18 hours since the OP posted.  I thought 2-3 days was
a 'standard' time to wait before getting antsy over no replies.
Did somebody shift the goalposts when I was not looking?

>...My newsservers keeps rejecting posts sometimes
>for days before accepting them.

That is too bad.  I understand the (dreaded, much maligned)
Google Groups can offer usenet direct to a 'rich client' news
client.  Have you tried that (or other alternative news feeds)?

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Roedy Green - 26 Jul 2007 14:07 GMT
>That is too bad.  I understand the (dreaded, much maligned)
>Google Groups can offer usenet direct to a 'rich client' news
>client.  Have you tried that (or other alternative news feeds)?

I did use Forte servers which you have to pay extra for. They have the
problem  a post does not show up for about 10 minutes, making it hard
to mark it for special consideration. It easily gets lost, especially
in the political newsgroups where people deliberately future date
posts. On principle I don't like paying for something I have already
paid for.  The Telus overseas help desk people could not understand
what I was trying to tell them. They are trained to encourage people
to  reboot their computers, routers and modems,  and that is about it.
They don't even know what a newsserver is.

I tried snail mail, without response.

Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



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.