diff options
Diffstat (limited to 'gnu/java')
-rw-r--r-- | gnu/java/awt/peer/GLightweightPeer.java | 9 | ||||
-rw-r--r-- | gnu/java/text/StringFormatBuffer.java | 6 |
2 files changed, 7 insertions, 8 deletions
diff --git a/gnu/java/awt/peer/GLightweightPeer.java b/gnu/java/awt/peer/GLightweightPeer.java index 4076ba531..88733b92f 100644 --- a/gnu/java/awt/peer/GLightweightPeer.java +++ b/gnu/java/awt/peer/GLightweightPeer.java @@ -82,7 +82,7 @@ import java.awt.peer.LightweightPeer; * Lightweight components are painted directly onto their parent * containers through an Image object provided by the toolkit. */ -public class GLightweightPeer extends MouseAdapter +public class GLightweightPeer implements LightweightPeer, ContainerPeer { private Component comp; @@ -92,7 +92,6 @@ public class GLightweightPeer extends MouseAdapter public GLightweightPeer(Component comp) { this.comp = comp; - comp.addMouseListener(this); } // -------- java.awt.peer.ContainerPeer implementation: @@ -363,10 +362,4 @@ public class GLightweightPeer extends MouseAdapter { } - - /** MouseListener for cursor changes. */ - public void mouseEntered(MouseEvent event) - { - setCursor(comp.getCursor()); - } } diff --git a/gnu/java/text/StringFormatBuffer.java b/gnu/java/text/StringFormatBuffer.java index 5772186b4..19b621ce4 100644 --- a/gnu/java/text/StringFormatBuffer.java +++ b/gnu/java/text/StringFormatBuffer.java @@ -118,4 +118,10 @@ public class StringFormatBuffer implements FormatBuffer { return buffer; } + + public String toString() + { + return buffer.toString(); + } + } |