AWTEvent.java (toString): Added case for source not being an AWT component.
2005-04-18 Robert Schuster <thebohemian@gmx.net> * java/awt/AWTEvent.java (toString): Added case for source not being an AWT component. From-SVN: r98346
This commit is contained in:
parent
636423701a
commit
f5373caf4e
|
@ -1,3 +1,8 @@
|
||||||
|
2005-04-18 Robert Schuster <thebohemian@gmx.net>
|
||||||
|
|
||||||
|
* java/awt/AWTEvent.java (toString): Added case
|
||||||
|
for source not being an AWT component.
|
||||||
|
|
||||||
2005-04-18 Chris Burdess <dog@gnu.org>
|
2005-04-18 Chris Burdess <dog@gnu.org>
|
||||||
|
|
||||||
* gnu/java/net/BASE64.java: Truncate encoded byte array.
|
* gnu/java/net/BASE64.java: Truncate encoded byte array.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* AWTEvent.java -- the root event in AWT
|
/* AWTEvent.java -- the root event in AWT
|
||||||
Copyright (C) 1999, 2000, 2002 Free Software Foundation
|
Copyright (C) 1999, 2000, 2002, 2005 Free Software Foundation
|
||||||
|
|
||||||
This file is part of GNU Classpath.
|
This file is part of GNU Classpath.
|
||||||
|
|
||||||
|
@ -246,6 +246,9 @@ public abstract class AWTEvent extends EventObject
|
||||||
else if (source instanceof MenuComponent)
|
else if (source instanceof MenuComponent)
|
||||||
string = getClass ().getName () + "[" + paramString () + "] on "
|
string = getClass ().getName () + "[" + paramString () + "] on "
|
||||||
+ ((MenuComponent) source).getName ();
|
+ ((MenuComponent) source).getName ();
|
||||||
|
else
|
||||||
|
string = getClass ().getName () + "[" + paramString () + "] on "
|
||||||
|
+ source;
|
||||||
|
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue