#javafx window
1 messages · Page 1 of 1 (latest)
I uploaded your attachments as Gist.
<@&987246399047479336> please have a look, thanks.
can you share a screenshot of your project structure (files)
im a bit new to java more c and python i know ! where and how would that be !
sorry java is new to me haha
also there is usually a green run button next to the main method 
on the left side
yep
the problem is that your file is named Main.java
but the public class is called Calculator
they should have the same name
in this context
so i need to rename the Main.java to Calculator ?
either rename the file to Calculator.java or rename the class to Main
up to you
they need to be the same
just trying to figure out how to rename aha
hm after trying change the name to Main it done this
hmm
nah this would rename the class
you need to rename the file
sorry its under rename
Rename File...
Thank you Squid ! i think its working now now i just have to figure how JavaFX and make it a GUI ahah got 4 hours left till assignment ! you the king
yeah LMAO
teacher gave us a day becuase he put it in late
just finished a C assigment i like c %d is nice : ) but yeah oof hope JavaFX is not too hard
I wouldnt say its hard, but for a beginner it definitely is
i have to make a GUI for that calculator that changes colour or something
especially the setup can be hard if you dont know maven/gradle
yeah at the moment Uni is making me study C pyton java and HTML at the same time
Python
nope
uh
you know what a build tool is?
the code for this exact project wont be that hard
the setup and stuff around that can be quite hard to understand at least
but there is good documentation to setup such a project
JavaFX and IntelliJ
and then decide which structure and build tool you want to go with
i use intelliJ I use all jetbrains products at the moment
jetbrains goated
fr
we actually sponsored
haha
yeah i use pycharm intellej and Clion
i start c++ next year
squid u goated fr

we been on java for 5 weeks so not much time yk
just i only know syntax and a few other things at the moment
you can learn a lot in 5 weeks
i might need a yt video for this
especially if you know other programming languages already
wouldnt recommend
I can go through this project with you
Yeah i just focused on C and other stuff as i have no idea how to use MatLab and had to do something that still have not idea how to do
if you want
sure
wait i need that code ? for the calulato no ?
you can copy paste that later
ohh kk
let me google what that is RQ
those are build tools
intellij got support for that
Ah Alright
they both give you a configuration file (pom.xml -> maven, build.gradle -> gradle) and you use that to define what your project needs (dependencies, which are kinda like libraries) and to define how to turn your source code into a jar
and more
ah i see so i open a new File / Project and with that i can select these build tools ?
Pog
for javafx I would just follow this one:
https://openjfx.io/openjfx-docs/
you need to decide the setup you want
and then you follow that
do i need to install this into intellej ?
wdym "this"?
Sorry midworded This as in Maiden
Maven
OH is it a tut ?
like a follow not install Plugin
just follow this website
got it !
select which one you want
and then follow that
but tbh some images seem outdated
its red bc that class doesnt exist yet. its nowhere in ur project
javafx window
Changed the title to javafx window.
Changed the category to JavaFX|Swing.
<@&987246487241105418> please have a look, thanks.
and ur thread is barely getting any attention bc u picked a bad category and a rather bad non-saying title
