Steve Zara wrote:
[snip-my demo that pasting from system clipboard can be done]
> >
> Thanks - this works fine as illustrated.  I'm more used to using the 
>highlight/middle button click
> copy/paste action under X - is there any way this can be accessed from Java?

This sort of thing works on my system, at least when I push both mouse
buttons simultaneously (I don't _have_ a middle mouse button):
-------------
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
//<applet code="mouser2.class" width=300 height=300></applet>
public class mouser2 extends Applet {

    public void init() {
        this.addMouseListener(new MouseAdapter() {
            public void mousePressed(MouseEvent e) {
                if(e.getModifiers() == InputEvent.BUTTON2_MASK)
                    System.out.println("middle button pushed");
            }
        });
    }
}
---------------
Bob L.
-- 
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/

Reply via email to