Jump to content

Hi, I'm currently learning Java in my computer science class and I want to play around with it more.

 

I've been thinking of porting some of my C# .Net programs to Java but I've hit a snag.

 

I don't know that much about Java's UI and frames.

 

What should I use for the UI (I've heard Swing is obsolete and awt is the new thing)?

 

And where can I learn how to use it?

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to comment
https://linustechtips.com/topic/540221-java-ui-help/
Share on other sites

Link to post
Share on other sites

Depends how complex you want it to be. Simple UI stuff can be done in the Netbeans IDE but the code is a bit of a garble. Super easy to use if simple is what you want though. AWT is a good bet, I have had success with it recently and just taught myself from reading on TutorialsPoint.

Link to comment
https://linustechtips.com/topic/540221-java-ui-help/#findComment-7155468
Share on other sites

Link to post
Share on other sites

Just now, brighteyes890 said:

Depends how complex you want it to be. Simple UI stuff can be done in the Netbeans IDE but the code is a bit of a garble. Super easy to use if simple is what you want though. AWT is a good bet, I have had success with it recently and just taught myself from reading on TutorialsPoint.

I'm using Eclipse for Java.

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to comment
https://linustechtips.com/topic/540221-java-ui-help/#findComment-7155471
Share on other sites

Link to post
Share on other sites

I've never really used Eclipse, just a hold over from my study days, so I can't really comment - but a quick google just then found this: https://eclipse.org/windowbuilder/

 

It seems relatively similar to Netbeans UI builder in terms of functionality but you should have a bit of a read into it to see if fits what you need.

Link to comment
https://linustechtips.com/topic/540221-java-ui-help/#findComment-7155483
Share on other sites

Link to post
Share on other sites

Yep. I just finished a semester on Java GUI. When you create a class file in Eclipse, right click > New > Other and look for Windowbuilder. Under Windowbuilder, there's a JFrame. Click that and Eclipse will generate a blank canvas GUI for you to start. You can code with source code or you can use the design view to code.

~~~SnapDragon~~~

| CPU: AMD Ryzen 9 9950X3D | CPU Cooler: Gigabyte Aorus Waterforce X II 360mm |RAM: 2x32GB G.Skill Trident Z5 Neo RGB 6000MHz | Mobo: Gigabyte X870E Aorus Xtreme X3D AI Top  | Storage: Samsung 9100 Pro 4TB + Samsung 990 Pro 4TB + Samsung 870 Evo 4TB + Samsung 870 Evo 2TB | Graphics Card: Gigabyte RTX 5090 Aorus Master 32G | Case: Lian Li Lancool 216 | PSU: Seasonic Vertex GX-1200 |

 

Link to comment
https://linustechtips.com/topic/540221-java-ui-help/#findComment-7155499
Share on other sites

Link to post
Share on other sites

1 hour ago, brighteyes890 said:

I've never really used Eclipse, just a hold over from my study days, so I can't really comment - but a quick google just then found this: https://eclipse.org/windowbuilder/

 

It seems relatively similar to Netbeans UI builder in terms of functionality but you should have a bit of a read into it to see if fits what you need.

Cheers. This may be exactly what i'm looking for.

 

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to comment
https://linustechtips.com/topic/540221-java-ui-help/#findComment-7155731
Share on other sites

Link to post
Share on other sites

Just now, brighteyes890 said:

No dramas, if you want a hand with Java stuff in the future feel free to flick me a message. I mean, google is just as handy but hey!

Sure. I will :)

Judge a product on its own merits AND the company that made it.

How to setup MSI Afterburner OSD | How to make your AMD Radeon GPU more efficient with Radeon Chill | (Probably) Why LMG Merch shipping to the EU is expensive

Oneplus 6 (Early 2023 to present) | HP Envy 15" x360 R7 5700U (Mid 2021 to present) | Steam Deck (Late 2022 to present)

 

Mid 2023 AlTech Desktop Refresh - AMD R7 5800X (Mid 2023), XFX Radeon RX 6700XT MBA (Mid 2021), MSI X370 Gaming Pro Carbon (Early 2018), 32GB DDR4-3200 (16GB x2) (Mid 2022

Noctua NH-D15 (Early 2021), Corsair MP510 1.92TB NVMe SSD (Mid 2020), beQuiet Pure Wings 2 140mm x2 & 120mm x1 (Mid 2023),

Link to comment
https://linustechtips.com/topic/540221-java-ui-help/#findComment-7155736
Share on other sites

Link to post
Share on other sites

JavaFX is a more modern GUI API than Swing and is what made it obsolete. AWT also deals with 2D graphics, so it's not exactly obsolete.  You can build OpenJFX, a GUI builder for JavaFX which was originally developed by Oracle as an accompaniment download for Java.

https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-GettingtheSources

Link to comment
https://linustechtips.com/topic/540221-java-ui-help/#findComment-7157072
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×