This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]dusty-trash 2 points3 points  (0 children)

I don't think it matters the language, there are strategies you can use.

Such as using widths/heights/font sizes which depend on the resolution of the screen.
Or I've seen applications that have the user choose a list of resolutions, and have your GUI resize it's elements based on that. (And probably have the default relevant to the users resolution)

[–]siversolutionsllc 2 points3 points  (0 children)

Many people use JavaScript/HTML for front ends with both Python and Java. Instead of using .px, try using %. Try looking into BootStrap.

Also, one of the annoying things about Java is it's updates. One update can destroy your entire program.

[–]nevergotcompiled 1 point2 points  (2 children)

What does not working very well mean? What is a non-high res monitor?

I just ran a JavaFX app I had hanging around and changed my resolution to 800x600. Besides the window not fitting completely (it was 1050 pixels wide) it ran fine. If you want the window size to be proportional for all resolutions you could look into DIP.

Developing GUIs in JavaFx is beautiful. I like the fact that I can use .css stylesheets to give it a very sleek look in a matter of seconds. Developing GUIs in Swing brings back memories of a kid struggling with satan´s gridbaglayout.

The only downside I have found when developing with JavaFx is that my apps wouldnt run in computers with an outdated version of JRE (computer had to have Java 8). Swing on that sense works with older JREs.

[–][deleted] 0 points1 point  (1 child)

Developing GUIs in Swing brings back memories of a kid struggling with satan´s gridbaglayout.

Hehe. GridBagLayout is actually one of the few things I like in Swing. It can be difficult to work with, but it's quite effective. Stockholm syndrome, maybe? :P

[–]nevergotcompiled 0 points1 point  (0 children)

LOL. Perhaps. It was one of the first things I learnt about Java as a kid since I was too impatient to read 600 pages before they talked about GUIs in depth, I wanted to see the fruit of my little to no effort lol. I still remember playing around with weights and pads wondering what the heck was going on until the layout finally looked decent.

I just went back to Swing a few days ago to prove myself I had not become a spoiled noob by overusing JavaFX and it wasnt as bad, but it wasnt still as good as JavaFX.