Bibi
19 Oct 2005 21:04

ujap.util
Class ClipListener

java.lang.Object
  extended byjava.awt.event.MouseAdapter
      extended byujap.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

Constructor Summary
ClipListener()
           
 
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.awt.event.MouseAdapter
mouseEntered, mouseExited, mousePressed, mouseReleased
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClipListener

public ClipListener()
Method Detail

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


Bibi
19 Oct 2005 21:04

Copyright ? 2002-2005 Ute Platzer. All Rights Reserved.