mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 21:29:17 +01:00
37 lines
809 B
Plaintext
37 lines
809 B
Plaintext
import processing.core.*;
|
|
import processing.xml.*;
|
|
|
|
import java.applet.*;
|
|
import java.awt.Dimension;
|
|
import java.awt.Frame;
|
|
import java.awt.event.MouseEvent;
|
|
import java.awt.event.KeyEvent;
|
|
import java.awt.event.FocusEvent;
|
|
import java.awt.Image;
|
|
import java.io.*;
|
|
import java.net.*;
|
|
import java.text.*;
|
|
import java.util.*;
|
|
import java.util.zip.*;
|
|
import java.util.regex.*;
|
|
|
|
public class bug136 extends PApplet {
|
|
|
|
java.util.List alist = Collections.synchronizedList(new ArrayList());
|
|
|
|
public void setup() {
|
|
size(400, 200);
|
|
alist.add("hello");
|
|
}
|
|
|
|
public void draw() {
|
|
rect(width/4, height/4, width/2, height/2);
|
|
synchronized(alist) {
|
|
alist.get(0);
|
|
}
|
|
}
|
|
static public void main(String args[]) {
|
|
PApplet.main(new String[] { "--bgcolor=null", "bug136" });
|
|
}
|
|
}
|