Jump to content

Another question from me! [GUI]


Recommended Posts

Posted (edited)

Looks very sweet! Very useful and understandable. Only thing is: i got 3 errors. 

 

1. treeSelector

2. CustomIntInTheMainClass

3. m.start

 

Edit: fixed nr2 and 3. 

Just needed to add: 

	public int CustomIntInTheMainClass;
	public boolean start;

In my main class.

 

EDIT EDIT: Fixed nr1 too. I think. 

EDIT EDIT EDIT: Nope, didn't fix nr1.

Edited by OSRS Sebastian
Posted (edited)

Looks very sweet! Very useful and understandable. Only thing is: i got 3 errors. 

 

1. treeSelector

2. CustomIntInTheMainClass

3. m.start

 

Edit: fixed nr2 and 3. 

Just needed to add: 

	public int CustomIntInTheMainClass;
	public boolean start;

In my main class.

 

EDIT EDIT: Fixed nr1 too. I think. 

EDIT EDIT EDIT: Nope, didn't fix nr1.

I made some mistakes in the paste and didn't explain it fairly well to you:

 

fixed the paste: http://pastebin.com/KErmtQ5k

 

in your Main class add:

public int CustomIntInTheMainClass = 0;

public String YourStringInTheMainClass = " ";

public boolean start = false;

JavaFX is NOT the same as Swing (JFrame), idk why vilikus did not understand that? learn swing first as it is way easier than javafx.

Yeah my bad, didn't see that he was using javafx facep.gif

Edited by Viliuks
Posted (edited)

firstly, you want to be using swing not jfx

 

Secondly, if you have eclipse, there's a really handy tool called 'WindowBuilder Pro' which is a plugin - http://www.eclipse.org/windowbuilder/download.php

If you install that, it will make your life 5x easier! (if you use an IDE other than eclipse, i'm sure there's an equivalent!)

 

apa

 

I have Eclipse. For my own record: WindowBuilder is Java Swing?

 

JavaFX is NOT the same as Swing (JFrame), idk why vilikus did not understand that? learn swing first as it is way easier than javafx.

 

Thanks for the tip. Will be digging deeper in the JFrame!

 

I made some mistakes in the paste and didn't explain it fairly well to you:

 

fixed the paste: http://pastebin.com/KErmtQ5k

 

in your Main class add:

public int CustomIntInTheMainClass = 0;

public String YourStringInTheMainClass = " ";

public boolean start = false;

Yeah my bad, didn't see that he was using javafx facep.gif

 

Thanks boss! This works like a charm. I'm about to study it! Will let you know when i finished my GUI!

Edited by OSRS Sebastian
Posted

firstly, you want to be using swing not jfx

 

Secondly, if you have eclipse, there's a really handy tool called 'WindowBuilder Pro' which is a plugin - http://www.eclipse.org/windowbuilder/download.php

If you install that, it will make your life 5x easier! (if you use an IDE other than eclipse, i'm sure there's an equivalent!)

 

apa

There is a stand alone builder called "JFormDesigner" except it requires payments but you can get a free trial.

Thanks for the tip. Will be digging deeper in the JFrame!

 

 

Thanks boss! This works like a charm. I'm about to study it! Will let you know when i finished my GUI!

If you gots more questions feel free to ask and look at Apeacs post.

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...