Jump to content

Explv's Dank GUI Tutorial


Recommended Posts

Posted

For future reference, I don't think it's currently possible to make GUIs using JavaFX for OSBot. If I had known this I would have saved myself a lot of trouble!

 

I think it is possible, just maybe not using FXML. Support may be added in the future by OSBot devs, but for now it is easier to just use Swing.

Posted

I think it is possible, just maybe not using FXML. Support may be added in the future by OSBot devs, but for now it is easier to just use Swing.

 

That's silly because it negates a large aim of JavaFX (separating logic code from design code). I hope they can support it soon to encourage good programming habits.

  • 4 weeks later...
Posted (edited)

I copied the complete code in step 10 and I got a bunch of errors, what's wrong?

 

e cannot be resolved to a variable

Syntax error on ">", invalid (

e cannot be resolved to a variable

Syntax error on tokens, expected ( instead

Syntax error, insert ")" to complete the Expression

Syntax error on tokens, delete these tokens

 

TGua2zY.png

Edited by fatpoop
Posted (edited)

I copied the complete code in step 10 and I got a bunch of errors, what's wrong?

 

e cannot be resolved to a variable

Syntax error on ">", invalid (

e cannot be resolved to a variable

Syntax error on tokens, expected ( instead

Syntax error, insert ")" to complete the Expression

Syntax error on tokens, delete these tokens

 

You need to make sure the Java language level in your IDE is set to Java 8.

Edited by Explv
  • 2 months later...
Posted

I am using eclipse windows builder myself its more better and easier to create my own customized jframe design but nice tutorial bro!

Yes most people do use gui builders, and I recommend using one. This tutorial is so that people understand the basics, so that they don't just use a gui builder and have no idea what any of the code it generates does.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...