QuestionThread problem - JAVA

Posts 1–3 of 3 · Page 1 of 1
Thread problem - JAVA
Hey,

Since i'm learning Java language at school, i've decided to learn how to RPM/WPM with Java JNA and it's working fine.
So i did the GUI, added some animations, and i did my BunnyHop class which is working fine with RPM/WPM but I don't know how to deal with the threads at this time..

Here is my main method in my main Class :
Code:
public static void main(String[] args)
{
                //Offsets scanning
		OffsetManager.scan();
		
                .....
		
		//Open GUI
                new FrameGUI("title");
        
                //Here is the problem !! :(
                new Thread(BunnyHop::run).start();
}
Here is my Bhop method in other class :
Code:
	public static void run()
	{
		while(true)
		{
			if(bhop_boolean)
			{
                               //Bhop RPM/WPM
			}
		}
	}
I don't know how to start the thread with the method run(), i tried a lot of tutorials but my bhop don't want to work with a thread..
So if someone could explain me how to deal with it, i could implement other functions with threads.

Thanks u in advance !
It's now working fine, just had to deal with my bhop class, i'll release some things good soon.
Thread can be closed.
<3
/Solved & closed.
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us