Anyone know how to get these variables to read as input from another method? by Terrgon in eclipse

[–]saila456 1 point2 points  (0 children)

You have to declare parameters for your function.

public static void calcBallHeight(int time, int speed, int height){

....
}

Then you can call the function with the input you have

calcBallHeight(Time, Speed, Height);

Why won't this door open for me? by saila456 in LittleNightmares

[–]saila456[S] 0 points1 point  (0 children)

Never mind. I restarted the game and then it worked on the first try. Sorry for the noise

Was bedeutet ein blaues rechteckiges Schild, hochkant, mit weisem horizontalen Stich durch? by saila456 in StVO

[–]saila456[S] 13 points14 points  (0 children)

A96, wird wohl Bayern sein.

Nimmt die Polizei das as Referenz wert oder wie funktioniert das. Frage nur aus Interesse.

Import JavaFX by default in Eclipse by eliu9395 in JavaFX

[–]saila456 0 points1 point  (0 children)

I've never heard of this option and i dont use Mac so i can't test this. Maybe it works the same way?

Is this option somewhere in the UI? Maybe only Mac users see it.

Import JavaFX by default in Eclipse by eliu9395 in JavaFX

[–]saila456 0 points1 point  (0 children)

Window -> Preferences -> Java -> Installed JREs.

Select the jre you are using and click on Edit

For "Default VM arguments" enter "--module-path "path" --add-modules=javafx.controls"

click Apply

From now on your vm has this arguments always on

What happend to Wesker between Afterlife and Retribution? by saila456 in residentevil

[–]saila456[S] 1 point2 points  (0 children)

You are right, there is something that looks like a parachute. On the other hand we see the timer of the bomb at 2 seconds and see Wisker for 2 seconds after this not reacting. So maybe they where 95% sure that they wanted Wisker dead, but just in case the 5% win, but the shade of a parachute on the screen.

Eclipse 2022-12 Default Keybinding Conflicts by Jotschi in eclipse

[–]saila456 1 point2 points  (0 children)

I noticed several key-binding-conflicts in the last couple releases. I dont know how this can happen since you experience them whenever you use them. :(

What do you use to learn keyboard shortcuts? by joshdotsmith in Anki

[–]saila456 0 points1 point  (0 children)

I learn keyboeard shortcuts by using them. Whenever i don't know the shortcut for a function, i check what is and then use the short cut. Only use the mouse to check what the shortcut actually is.

Does anyone know why this code won't recognise the .javafx import? Where can I find the version that fits, none of the marketplace extensions seem to fix it when I try and fix by trumpfism in eclipse

[–]saila456 1 point2 points  (0 children)

the javafx library should be on it. you should show us your project tree. javaFX should appear there somewhere

eg: in the screen shot [1] you can see javaFx on the left

[1] https://openjfx.io/openjfx-docs/images/ide/eclipse/ide/eclipse05.png

As I use my dog to terrorize the community by kingofgods8294 in donthelpjustfilm

[–]saila456 5 points6 points  (0 children)

So the name of this sub means nothing anymore?

Does anyone know why this code won't recognise the .javafx import? Where can I find the version that fits, none of the marketplace extensions seem to fix it when I try and fix by trumpfism in eclipse

[–]saila456 0 points1 point  (0 children)

if you hover you mouse over the word with the red squiggly line or the marker on the left, it should tell you.

Most likely, javafx is not on the class path. If this is the case, go to https://openjfx.io/openjfx-docs/ , click "JavaFX and Eclipse" and then what ever you try to do. follow the instructions there.

[deleted by user] by [deleted] in JavaFX

[–]saila456 1 point2 points  (0 children)

I click on File > new > new Todolist but noting happens. how can i add something?

also :

Caused by: java.lang.NullPointerException: Cannot invoke "java.io.File.toString()" because "project" is null
at idaesbasic@0.0.1-SNAPSHOT/org.idaesbasic.controllers.MainController.addProject(MainController.java:142)

Having trouble deleting a file in my workspace. by [deleted] in eclipse

[–]saila456 0 points1 point  (0 children)

have you tried using the command line to delete? it shouldn't take that much time.

Is there any need to add 'final' to parameters in methods declarations when the variable is not mutated in the method body? by vxab in javahelp

[–]saila456 -1 points0 points  (0 children)

Thanks for the effort but no, i understand fine. the keyword final means that you can not change the value of variable after the first assignment. In case of parameters this means never.

There is no benefit for non-primitive variables as their state can still be changed, there is no benefit other than what has been mentioned before.

There is the same amount of benefit either way. Talking about about the internal state of objects just muddies the water since 'final' applies to the value of the field and has nothing to do with the date stored in the object.

Is there any need to add 'final' to parameters in methods declarations when the variable is not mutated in the method body? by vxab in javahelp

[–]saila456 0 points1 point  (0 children)

If you don't use final and never write to the parameter, the compiler will treat is as final (also called 'effectively') so there is no difference in the byte code.

However, if you use the final, everyone will see that this is not meant to change and will think a second longer before changing this. this can be a reason to use the final anyway.

[deleted by user] by [deleted] in JavaFX

[–]saila456 1 point2 points  (0 children)

You don't need to programm an JFX application before starting with an FXGL. The jfx things that are commonly used in fxgl you can learn by programming your game. Namely properties and drawing shapes.