Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Hello I am wondering how do you do two fucntions at the same time.. The code I've included does the following - It creates a button and the buttons moves to a locations by using a "for" loop and a "setBounds" expression. Then it creates a second button and moves it to a diffrent location by using the same method as above. The problem is that the second button has to wait till the first button is finished moving. How do I get both buttons to move at the same time. I need a method that will allow me to move 3 or even 10 buttons at the same time with all buttons having diffrent motion paths. Here is the code... any help would be greatly appreciated. thanks in advance.. yours respctufully Avin Sinanan CODE --> import java.awt.event.*; class TwoFunctions Replies:
|
Sponsored Links
|