Tag Info

New answers tagged


not a java developer but: public static Rectangle bounds; is no good. Static members belongs to class not to objects (class references). So when you change bounds bounds = new Rectangle(x, y, width, height); you set it for all simpleButton objects . And the last instantiated goes in top of the others.

Top 50 recent answers are included