mirror of git://gcc.gnu.org/git/gcc.git
[multiple changes]
2005-04-28 Tom Tromey <tromey@redhat.com> * javax/swing/Timer.java (drainEvents, queueEvent): Now package-private. 2005-04-28 Audrius Meskauskas <audriusa@bluewin.ch> * javax/swing/Timer.java (constructor): Assigning initialDelay. 2005-04-28 Audrius Meskauskas <audriusa@bluewin.ch> * javax/swing/Timer.java (Waker.run): firing the first action event. From-SVN: r98939
This commit is contained in:
parent
67468e8eda
commit
b4ad897d57
|
@ -1,3 +1,18 @@
|
||||||
|
2005-04-28 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* javax/swing/Timer.java
|
||||||
|
(drainEvents, queueEvent): Now package-private.
|
||||||
|
|
||||||
|
2005-04-28 Audrius Meskauskas <audriusa@bluewin.ch>
|
||||||
|
|
||||||
|
* javax/swing/Timer.java
|
||||||
|
(constructor): Assigning initialDelay.
|
||||||
|
|
||||||
|
2005-04-28 Audrius Meskauskas <audriusa@bluewin.ch>
|
||||||
|
|
||||||
|
* javax/swing/Timer.java
|
||||||
|
(Waker.run): firing the first action event.
|
||||||
|
|
||||||
2005-04-28 Michael Koch <konqueror@gmx.de>
|
2005-04-28 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
* javax/swing/Timer.java: Reordered all fields and methods,
|
* javax/swing/Timer.java: Reordered all fields and methods,
|
||||||
|
|
|
@ -70,6 +70,8 @@ public class Timer
|
||||||
{
|
{
|
||||||
sleep(initialDelay);
|
sleep(initialDelay);
|
||||||
|
|
||||||
|
queueEvent();
|
||||||
|
|
||||||
while (running)
|
while (running)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
@ -92,6 +94,8 @@ public class Timer
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
// The timer is no longer running.
|
||||||
|
running = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -189,6 +193,7 @@ public class Timer
|
||||||
public Timer(int d, ActionListener listener)
|
public Timer(int d, ActionListener listener)
|
||||||
{
|
{
|
||||||
delay = d;
|
delay = d;
|
||||||
|
initialDelay = d;
|
||||||
|
|
||||||
if (listener != null)
|
if (listener != null)
|
||||||
addActionListener(listener);
|
addActionListener(listener);
|
||||||
|
@ -468,7 +473,7 @@ public class Timer
|
||||||
* Post a scheduled event to the event queue.
|
* Post a scheduled event to the event queue.
|
||||||
* Package-private to avoid an accessor method.
|
* Package-private to avoid an accessor method.
|
||||||
*/
|
*/
|
||||||
private void queueEvent()
|
void queueEvent()
|
||||||
{
|
{
|
||||||
synchronized (queueLock)
|
synchronized (queueLock)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue