Jump to content

Another question from me! [GUI]


Sebastian

Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

  • Like 2
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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