[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
>using java for desktop applications
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 37
Thread images: 6
File: swingset_swing.png (161 KB, 994x624) Image search: [Google]
swingset_swing.png
161 KB, 994x624
>using java for desktop applications
>>
>>54466437
>2 people who's favorite movie is brazil
is this some exclusive no plebs allowed club?
>>
File: 107845362712.gif (1 MB, 263x263) Image search: [Google]
107845362712.gif
1 MB, 263x263
>>54466437
>using java at all
>>
>>54466522
>>54466437
The only reason to use Java is Hadoop, and you can use Scala anyway so it's not really a reason
>>
File: jd.png (135 KB, 947x709) Image search: [Google]
jd.png
135 KB, 947x709
Literally nothing wrong. Since browser applets and npapi plugins are dead "java is a meme" meme became stale.
>>
File: 1462825984432.gif (1 MB, 263x263) Image search: [Google]
1462825984432.gif
1 MB, 263x263
>>54466539
>using scala at all
>>
>>54466473

One person has asparagus as his favourite fruit. It's a club of retards.
>>
>>54466624
Well, you can use Clojure too, which is comfy
>>
>>54466437
>no one has 42 as favorite number
>>
>>54466620
yup. 15 years ago when Java was super laggy then sure it was shit.

But today it is pretty good for the most part. The best thing about Java is that I can easily make a GUI program and it will pretty much work the same on every platform without any/much extra work. For business programs it works great.
>>
>>54466767
How is that different from Python with Qt?

Also, Qt is a hell lot comfier to code in and it works much better than Swing without looking like turds.
>>
>>54466767
Can you make native looking GUIs with JAVA?
>>
>>54466705
Objective Caml and Common Lisp are the only function programming languages that are ever worth using.
And even then, they are extremely niche.

But it's funny that your fall back to the most poorly optimized "popular" functional language was the second most poorly optimized.
>>
>>54466795
Python is more awkward to distribute than Java software.

Also there are a lot more reasons to choose Java over Python for software than simply the GUI framework.
>>
>>54466624
Scala is actually pretty cool, anon-kun
>>
>>54466828
>What is Twitter
>>
>>54466836
Not really. Just add a script that runs it, and throw a shortcut on the desktop. The Python runtime is small, you can easily bundle it. The Java runtime is way too big for that.
>>
>>54466795
Python is painfully slow for anything serious with a GUI. If you think Java is slow you will want to kill yourself with Python.

Qt is excellent yes but it requires compiling and deploying multiple executables and not everything works exactly the same between platforms. I do think it is better than Java in same ways but unless you really need the performance gains of going C++ it can be more work for not much gain.

>>54466820
Sure just set the look and feel to the native platform. Some things dont look quite right but a normal every day user isnt going to notice in my experience anyway.
>>
>>54466958
Things don't look close to native, and in some cases on Linux you end up with text being pretty much unreadable etc.
>>
>>54466958
>Sure just set the look and feel to the native platform. Some things dont look quite right but a normal every day user isnt going to notice in my experience anyway.

So JAVA is basically emulating the native look and feel, and not calling the native widget API, right?
>>
>>54466678
>favorite food
Ftfy
>>
>>54466982
yeah font rendering can look shit. personally i just make everything using the Modena style. It looks alright and means all of our applications look the same.

>>54466991
yup
>>
>not writing desktop applications in shell script and tk.
>>
File: 4Fbee.png (29 KB, 440x204) Image search: [Google]
4Fbee.png
29 KB, 440x204
>>54466991
Qt does the same, but it does that really well

Swing really doesn't
>>
>>54466991
Swing emulates but SWT wraps around native widgets IIRC.
https://www.eclipse.org/swt/
>>
>>54467043
that is the dev being lazy though. As you can see Eclipse has nicely rendered fonts and is a Java app.
>>
>>54467064
>SWT

Looks sweet. Clojure + SWT could be the comfiest.
>>
>>54467043
I thought Qt also wrapped around native widgets.
>>
Why has no one mentioned JavaFX? Swing is deprecated, JavaFX looks much nicer and it's way better to develop in.
>>
>>54466820
Yes, you can. I think you'd want to anyway because the Swing default style looks like ass. The default on JavaFX looks ok though.

Not sure why both are still being supported.
>>
>>54467269
yup plus it is hardware accelerated (when possible). it is quite similar to WPF in .NET
>>
>>54467331
legacy. Sun were pretty anal about maintaining solid legacy stuff even with newer JRE. For the most part they did an amazing job as well. You can load up a Java 1 program and it will probably still work on JRE8
>>
File: ss-2016-05-09-23-57-01.png (308 KB, 1680x1050) Image search: [Google]
ss-2016-05-09-23-57-01.png
308 KB, 1680x1050
>>54466437
>not using java for desktop applications
>>
>>54466620
The"""java is a meme" meme"" meme need to die.
>>
>>54466958
>>54466982
To get any look and feel correct in Linux you need to use Qt or GTK. Anything else is going to entirely fuck up.
>>
TFW waiting for Planck meme
>>
>>54466437
>swing
are you from 2001? I swear it's only chucklefucks like that who shit on java
Thread replies: 37
Thread images: 6

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.