ujap.util
Class ClipListener
java.lang.Object
java.awt.event.MouseAdapter
ujap.util.ClipListener
- All Implemented Interfaces:
- EventListener, MouseListener
- public class ClipListener
- extends MouseAdapter
Reacts to clicks of the middle mouse button and sets or inserts the text
from the clipboard into the event's source component (a JTextField,
JTeatArea, or JComboBox).
- Author:
- Ute Platzer
Method Summary |
(package private) static void |
insertClip(MouseEvent e)
Insert text from the Clipboard (not the linux selection! - in linux,
nothing happens). |
void |
mouseClicked(MouseEvent e)
if middle mouse button is pressed, call insertClip method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClipListener
public ClipListener()
mouseClicked
public void mouseClicked(MouseEvent e)
- if middle mouse button is pressed, call insertClip method
insertClip
static void insertClip(MouseEvent e)
- Insert text from the Clipboard (not the linux selection! - in linux,
nothing happens).
this method is also called by other classes in this package
Copyright ? 2002-2005 Ute Platzer. All Rights Reserved.