Should I learn Java FX or Swing is enough? | SoloLearn: Learn to code for FREE!

+1

Should I learn Java FX or Swing is enough?

9/23/2020 3:53:26 AM

Azizbek Rasulmetov

22 Answers

New Answer

+13

🍿nom... nom... nom... 🥤slurp... sluuurp... 🤫 Oops... Don't mind me. I'm just enjoying the show. 🤓👌

+8

It depends on what you wish to use Java for. If your intention is to create Android applications then you don't need to learn either. Android applications can use the Android SDK. Similarly Java Server Pages (JSP) do not use the Java gui framework. If you wish to create Java desktop applications then JavaFX is the newer framework, though Java Swing is still supported. However, there are still a lot of applications using Java Swing. So if you will be maintaining or porting existing code knowing Java Swing will be useful.

+7

IEEE Spectrum states that it pulls github to make it's predictions. Of course that is a rubbish metric. Any idiot can create a public github account. W3Techs on the other hand measures the top 10 million web sites based on traffic. This is why it is important to read how the metrics are quantified. As the old saying goes "There are lies, damned lies, and statistics". Statisticaly 100% of people that breathe air die, so the conclusion is that air is toxic. You are the one that said "Java is used mostly in web development" I was just pointing out some web statistics from a company that monitors web servers. That's also why I mentioned that applets are dead since web development includes the client side code. It is important when posting links to external sources to at least attempt to verify that they are reputable. After all I can find websites that say the world is flat, and the lizard aliens are controlling the world's governments. Which is rubbish of course because how can the world be flat if it's hollow, and the illuminati control the governments. I can give you the links to prove it.

+6

@Aleksandrs. Java is rarely used in web development. Java applets died years ago due to security issues and Java only has a 3.3% share of the server side market. Compare that with 78.9% for PHP and 9.7% for ASP.Net. https://w3techs.com/technologies/overview/programming_language

+5

@Azizbek Rasulmetov If you wish to do Android development then just study the core Java language and classes. The Android API documentation is on the Android developer's site... https://developer.android.com/reference There is a lot of information on the Android Developer's site see also... https://developer.android.com/docs

+5

@Aleksandrs. If you think that the information from w3techs is rubbish then please provide a more authorative link. W3Techs review the top 10 million websites so I would deem it to be fairly accurate. As for where Java is used. Java is used in Java Server Pages but it is not as common as other languages. Java is also used to develop cross platform software (Eclipse IDE) and Mobile applications (Android). It can also be used in embedded systems (Java ME) and smart cards (Java Card). There is even a version of Python written in Java (Jython). Edit: As for your comment "There are hundreds of thousands of server-side apps written in Java". Yes, I agree. 10,000,000 * 3.3% = 330,000 that's hundreds of thousands according to my math.

+4

JavaFx is modern Java framework. it's flexible and easy to use and using CSS styling 😊

+3

it's choice based if you want than learn because you need to be aware of all types of languages not much but atleast basics

+3

Martin Taylor Where is Java used then, may I ask? This diagram is bunch of nonsense. PHP is leading there because most of the pages they checked are simple sites and blogs written using WordPress. There are hundreds of thousands of server-side apps written in Java used by huge banks and e-commerce companies. And how did you come up with the idea I proposed using applets, if I suggested using html, css and React/Angular for ui?

+3

@Martin Taylor I want to be an Android developer

+2

Thanks guys for all the info☺

+2

@Martin Taylor Github and Google is a starting point to filter out obscure languages. How 11 metrics are used to rate languages is not described in the article. How is it worse than just monitoring 10 millions of websites? Ok, there are billions of websites written using WordPress. Most of them are written like, in one or two days. How this statistics can deny the fact that Java holds the majority of market in enterprise web development for 20 years already? "Java is used mostly in web development" in terms of Java web-desktop usage. You can easily verify this by trying to find a job as Java desktop applications developer. You will look for ages. And even if you'll be able to find one, it will probably be some legacy written 15 years ago. JavaFx and Swing are complete waste of time, especially for junior developers.

+2

Azizbek Rasulmetov if you want to be android developer you dnt have to learn it. You may put your foccus on java SE and kotlin.

+1

Martin Taylor Here is another rubbish rating for you, where Java is at the top, beating even JavaScript. I found it in the first search page, I guess you can find more. IEEE Spectrums top languages for web: https://insights.dice.com/2020/07/30/top-24-programming-languages-web-development-python-more/ They are using 11 different metrics for measurement. What does it tell us? Absolutely nothing, like any other rating. And what part of my statement "Java is not used for desktop development, but used in the web development" is so wrong? How many widely used desktop applications written in Java do you know? Besides Eclipse, Idea (used for Java development) and Minecraft. You can easily check it if you'll visit any job site and look how many Java developers knowing JavaFx or Swing are in demand (none) and how many Java web developers are in demand(a lot). P.S. Java Server Pages is so dead. It's like applets nowadays, everyone tries to avoid it.

+1

Learn javafx. Its the future. Javafx is the modern way of creating graphical user interfaces for desktop applications.

+1

It's your wish you are a developer. You can do everything your way.

+1

Martin Taylor Of course the world is not flat! The world is the inside of a (3- Dimensional circle, what is the english word?). You can see this on your shoes which get curvatured! And the nearer anything is to the middle the smaller it gets. so from our view we can travel as far as we want, as we will never reach the middle!!!!!!!

0

But I want to be an android developer, I think no need to learn it for me.

0

I have learned Java. Shall I start learning Android development?

0

NO you should learn more languages IT WILL BE BEST FOR INCREASING UR KNOWLEDGE IN CODING..