• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I take a variable and print it to a cursor using SWT?  RSS feed

Wc Swanson
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am rewriting an application in Java from the Processing IDE to Eclipse. In Processing I have been able to get a variable printed to the cursor using the following code:

import processing.serial.*;
import java.awt.*;
import java.awt.event.*;

Robot robot;

{ robot = new Robot(); }
catch (Throwable t)
exit(); // If there is an exception here, we might as well exit

for (int i=0; i<s.length(); i++)
println("keyPress: " + s.charAt(i) + " i: " + i + " :: " + (int)s.charAt(i));


Does anyone have any sample code using SWT?

The purpose is to take a reading from a serial port and drop the reading at the cursor which could be in a spreadsheet.

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!