The Artima Developer Community
Sponsored Link

Java Answers Forum
pause in java

3 replies on 1 page. Most recent reply: Jun 19, 2002 5:36 PM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
jake

Posts: 83
Nickname: onorok
Registered: May, 2002

pause in java Posted: May 21, 2002 3:13 PM
Reply to this message Reply
Advertisement
I want to use the pause method in the javax.swing.Timer; package but when I call
timer.pause(2200);
it points to the dot in between timer and pause and says cannot resolve symbol. Does anyone know how to fix this?????


Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: pause in java Posted: May 21, 2002 3:19 PM
Reply to this message Reply
Jake
post the code or a sub set of it ...
Tx,

Thomas,

Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: pause in java Posted: Jun 19, 2002 3:06 PM
Reply to this message Reply
Have you tried to do a
...
try
{
  Thread.sleep (SomeTimeInMillis);
} catch (Exception e)
{
  // Do nothing you just have been interruped ;-)
}
...


Thomas SMETS,

Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: pause in java Posted: Jun 19, 2002 5:36 PM
Reply to this message Reply
There is an excellent article:
Using Timers in Swing Applications
at:
http://java.sun.com/products/jfc/tsc/articles/timer/

Flat View: This topic has 3 replies on 1 page
Topic: AudioInputStream problems Previous Topic   Next Topic Topic: String Literal Pool

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use