ok JVZ, I will explain better what I want saw "win a class". I'm brazilian and speak not so much in english... sorry... The situation is below:
1. An Worksheet Excel (or Lotus Notes Mail) are open;
2. Is running an applet called from one of its describe on step 1.
3. A interface window (JFrame) having two JTextField and I want that the applet send this two JTextField (after users typewriter)as parameter (export) into cell worksheet or Mail Notes.
Assume you are running MS Windows.
I think you can create a simple java application.
The java application accept user input, then the application output the result to clipboard.
Then the user press control-V or Paste the dat from clipboard.(Within Excel)
import java.awt.*;
import java.awt.datatransfer.*;
class myPaste
{
public static void main(String args[])
{
StringSelection ss = new StringSelection("The message produced by Java"
Clipboard clip=Toolkit.getDefaultToolkit().getSystemClipboard();
clip.setContents(ss,ss);
}
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.