We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Eclipse - hang on mouse over
Page Index Toggle Pages: 1
Eclipse - hang on mouse over? (Read 1034 times)
Eclipse - hang on mouse over?
Apr 20th, 2009, 2:55am
 
I'm running the linux build of processing on Ubuntu. I'm building some sketches with Eclipse, but when I go to run them as a java application, they instantly crash/freeze with no error when I put my mouse over the window. I've tried very simple examples such as the following, but it  just stops as soon as the mouse is in the window. Anyone have any ideas?
Code:
import processing.core.*;

public class Test extends PApplet {

   public static void main(String args[]) {
       PApplet.main(new String[] { "Test" });
 }

   float a = 100;

   public void setup() {
       size(200, 200);
       stroke(255);
       frameRate(30);
   }

   public void draw() {
       background(51);
       a = a - 1;
       if (a <0) {
           a = height;
       }
       line(0, a, width, a);
   }
}
Page Index Toggle Pages: 1