#javafx window

1 messages · Page 1 of 1 (latest)

proven lodge
limpid hornetBOT
#

<@&987246399047479336> please have a look, thanks.

rough swallow
#

can you share a screenshot of your project structure (files)

proven lodge
#

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

rough swallow
#

also there is usually a green run button next to the main method peepo_think

proven lodge
#

yeah i have been struggling for about 4 hours rn

#

kk will look now !

#

this >?

rough swallow
#

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

proven lodge
#

so i need to rename the Main.java to Calculator ?

rough swallow
#

either rename the file to Calculator.java or rename the class to Main

#

up to you

#

they need to be the same

proven lodge
#

just trying to figure out how to rename aha

#

hm after trying change the name to Main it done this

rough swallow
#

right click file

#

refactor

#

and then rename

proven lodge
rough swallow
#

nah this would rename the class

#

you need to rename the file

#

sorry its under rename

#

Rename File...

proven lodge
#

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

rough swallow
#

4h?

#

javafx requires some intermediate knowledge

proven lodge
#

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

rough swallow
#

I wouldnt say its hard, but for a beginner it definitely is

proven lodge
#

i have to make a GUI for that calculator that changes colour or something

rough swallow
#

especially the setup can be hard if you dont know maven/gradle

proven lodge
#

not sure how hard that is haha but !

rough swallow
#

damn

#

thats quite complex for a beginner

#

you learned maven or gradle yet?

proven lodge
#

yeah at the moment Uni is making me study C pyton java and HTML at the same time

#

Python

proven lodge
rough swallow
#

uh

proven lodge
#

i just finishd a pygame and C database

#

was hoping java wouldent be too much haha

rough swallow
rough swallow
#

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

proven lodge
#

i use intelliJ I use all jetbrains products at the moment

rough swallow
#

jetbrains goated

proven lodge
#

fr

rough swallow
#

we actually sponsored

proven lodge
#

love it

#

???

#

FR

#

nice

#

i get all the products free becuase of UNI

rough swallow
#

you might want to check this: #announcements message

#

ok nvm

proven lodge
#

haha

#

yeah i use pycharm intellej and Clion

#

i start c++ next year

#

squid u goated fr

rough swallow
proven lodge
#

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

rough swallow
#

you can learn a lot in 5 weeks

proven lodge
#

i might need a yt video for this

rough swallow
#

especially if you know other programming languages already

rough swallow
#

I can go through this project with you

proven lodge
rough swallow
#

if you want

proven lodge
#

sure

rough swallow
#

so first you would want to create a new project

#

which uses either maven or gradle

proven lodge
#

wait i need that code ? for the calulato no ?

rough swallow
#

you can copy paste that later

proven lodge
#

ohh kk

proven lodge
rough swallow
#

those are build tools

proven lodge
#

ahh

#

do i download it

#

?

#

or already built in

rough swallow
#

intellij got support for that

proven lodge
#

Ah Alright

rough swallow
# rough swallow those are build tools

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

proven lodge
#

ah i see so i open a new File / Project and with that i can select these build tools ?

#

Pog

rough swallow
#

you need to decide the setup you want

#

and then you follow that

proven lodge
#

do i need to install this into intellej ?

rough swallow
#

wdym "this"?

proven lodge
#

Sorry midworded This as in Maiden

#

Maven

#

OH is it a tut ?

#

like a follow not install Plugin

rough swallow
proven lodge
#

got it !

rough swallow
#

select which one you want

#

and then follow that

#

but tbh some images seem outdated

proven lodge
#

Update im LOST

#

so confusing oof

near hornet
limpid hornetBOT
#

javafx window

#

Changed the title to javafx window.

#

Changed the category to JavaFX|Swing.

#

<@&987246487241105418> please have a look, thanks.

near hornet
#

and ur thread is barely getting any attention bc u picked a bad category and a rather bad non-saying title