Should I choose SWT or swing to program the GUI in Java?

I need to create a GUI application in Java I realized that I had different options (including SWT and swing)

I've found a lot of discussion about which way is better, and I don't want to go into it (I'm a novice)

I don't care about all aspects of the dilemma I just listed some main requirements:

>It should be easy to use (easy to create what I want). > Finally, I hope that only one file can be easily executed (without any additional skills, setup and installation), just like a stand-alone application. > It should be platform independent Or more specifically, the application should work on Microsoft Windows and Ubuntu (Linux)

Solution

According to your request, I will say swing SWT has a more platform specific appearance, but Java has built-in swing. Like SWT, there is no problem about external libraries, although the use of eclipse can make it easier (I still develop a lot of my things) Unfortunately, the command line)

They are very simple to use (very easy, once you get used to the layout manager) and can work normally on the platform you want, but because the only difference you seem to care about is "no additional skills, settings and devices", I will stick to using swing

This is my suggestion Accept or ignore at will, and even call me an old fool I won't offend: -)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>