Marius Hille

Greenhorn
+ Follow
since Oct 11, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Marius Hille

I found a solution at StackOverflow

How to add javafx11 to eclipse

That is a step-by-step guide to integrate JavaFX 11 in Eclipse 4.9 using JDK 11 with a small "HelloFX"-Program, which is pretty cool.

Thank you guys!
9 months ago

Marius Hille wrote:
I installed x and x



Meaning:

> e(fx)clipse 3.0.0

> Java 11 support for Eclipse 2018-09 (4.9)
9 months ago

Jan Daermann wrote:Marius,
It is a little difficult to judge where you are stuck from your description. First of all you can use Java 11 and the corresponding JavaFX 11 package, you do not have to use older versions.

As a first step I would suggest you check whether you have installed the "Java 11 for Eclipse" patch. Then check whether JavaFX has been included in the module path of your project.



I installed x and x

Furthermore I added via the properties of a certain project to the module path all the .jar-files of fx. The imports are working fine now. So no error messages for those.

Now a new error message appears:

Could not find or load main class hellofx.HelloFx where hellofx is just the name of the single one package in the project and HelloFx is the single one class, which contains the following code:



Thanks for the hints, Jan.

I did some research for that error as well, but only got some information, that the package name probably is not included properly, which it actually is.

Is there any further hint for that problem?

Thanks in advance
9 months ago
Hey Guys,

I am struggling for two days now to create a "Hello JavaFX"-Project within my Eclipse IDE using JDK11. I got to know that JavaFX was decoupled this year from the JDK and it has to be integrated separately but it seems that there are no tutorials for that specific setting as described in the subject of this post. And since I am a newbie to that all, I do not not have the mental flexibility to fix and engineer all by myself with my Java- and IDE-Config - Experience so far.

So here are the resources I tried to use for my endeavour so far:

Downloaded JavaFX Library > Link

E(fx)clipse - Tutorial > Link

Do I need more components to start building JavaFX projects with Eclipse or are the above mentioned sufficient and do you know how to do the set-up properly? Do I maybe have to use an older version of Java respectively an older JDK (if yes, how can I easily switch between Java Version in Eclipse?)?

Sorry for asking so many questions, but it is getting a bit frustrating now xD.

Thanks for any feedback in advance.

Best regards
Marius
9 months ago
Hey Guys,

in a Java-Training we had to write a file-crawler programm, which allows to search for files and filter for file-type and file-size and count the occurences of a specific word in files.

I am still a greenhorn. So I put everything into one class and am trying to follow some theories now to refactor the code (e.g. one method should have single responsibility). But I am still struggling to think about better restructuring-methods to make the code easy maintainable and extendable in the future.

Maybe you have some hints to push me to a better thinking concerning restructuring of code.

Thankful for any feedback.

Cheers
Marius

9 months ago

salvin francis wrote:Your code still misses the part where you add the panel to your frame, did you try the code I shared ?



Yep, I did and though I do not understand it completely yet, it works. So I imagine it like layers or objects to remain in OO-speak resp. Java-speak. First creating some GUI-objects (Label, Button, Panel, Frame, etc.) and secondly putting them all together by using the add()-method considering the hierarchy (a Button-object should be added commonly to a Panel-Object and not directly to a Frame-Object and so on).



salvin francis wrote:"sufficient" would probably not be the right word to describe it,  I would say its outdated. I would leave it to others to suggest about Swing vs JavaFx since I do not know much about JavaFx.



Allright, thanks. I will take a look at both technologies and see what fits best for me .

salvin francis wrote:As a side note, thanks for sharing your code this time instead of a screenshot of code.



Yep, I am kean to follow the rules and learn something, so thank you for your feedback about the "Ranch-Conventions".
10 months ago

Carey Brown wrote:

Carey Brown wrote:You are missing a call to
[edit] I missed the fact that you aren't using Swing but AWT instead.


Looks like AWT Frame also uses this method so give it a try. Call it as the last thing you do after coding the layout (i.e. adding buttons, labels, etc.).



I tried this but still just getting an empty non-functional frame. So probably just using AWT-technology is not sufficient anymore and I should use JavaFX or Swing, right.



10 months ago

Carey Brown wrote:You are using the AWT library. That is ancient and you shouldn't be using anything less than Swing.



so it is not possible at all to even you the AWT library? or should it work nonetheless just with a work around?
10 months ago
Hey Guys,

I am trying the first small code example from Java Head First and unfortunately it does not seem to work respectively does not show a panel, like it is shown in the book.

Do you have any suggestions, what is wrong with the code?

Thank you in advance

Best regards
Marius
10 months ago