In line with my post about Steve's problem, if his "paste" button
actionListener method is altered (gutted?) as follows, just for a demo
to show pasting from the system clipboard:
-----
...
b2.addActionListener( new ActionListener() {
public void actionPerformed(ActionEvent e)
{
Transferable data=Clip.getContents(this);
//System.out.println("data is: "+data);
String result = "";
try {
result =
(String)data.getTransferData(DataFlavor.stringFlavor);
}
catch (Exception ex) {;}
t2.setText (result);
t1.setText (result);
}
});
pB.add(b1);
pB.add(b2);
add("South",pB);
add("Center",pA);
}
}
------
then text copied to the system clipboard (for example, highlighting and
copying some text in Netscape mail) will be pasted to both text areas
when the "paste" button is hit.
This shows that this "bug" can be gotten around.
Bob L.
--
Robert Lynch-Berkeley CA [EMAIL PROTECTED]
http://www.best.com/~rmlynch/