Re: java gui is flashing

2010-07-25 Thread Mate Toth
Thx guys! I used double-buffering like in Ryan's code and it worked like a charm! M On Jul 25, 4:01 am, Ryan Sattler wrote: > I've been working on a game with Clojure/Swing lately and the simplest > way to avoid flashing is to draw to a bufferedImage first, then draw > that bufferedImage all at

java gui is flashing

2010-07-24 Thread Mate Toth
Hi, my problem is that during execution my presentation java applet is flashing. There are many components which paint to a JPanel using it's Graphics (.getGraphics). I think maybe the problem is that I don't have any "paint everything now" routine..(I don't know which Java routine to use, how I h

structures contains each other

2010-07-02 Thread Mate Toth
I'm building a directed graph library, where the nodes has "out" and "in" fields. If I connect a node, let's say: (node->node n0 n1) then the node's fields would be the following: n0: in: () out: (n1) n1: in: (n0) out () My problem is that if I update n0 I could only add the old "instance" to t