用java和c#这两个语言开发桌面程序,最先进的技术分别是什么?
我学过android开发,和android开发风格差不多的(就是用xml做布局)的java桌面开发技术是什么?c#桌面开发技术是什么?
谢谢大神们
ringa_lee2017-04-18 10:18:09
Java uses J2SE’s awt, swing or javafx, and C# uses winform, wpf or uwp.
黄舟2017-04-18 10:18:09
Traditional as @RobinTang said.
If you don’t mind JS, you can take a lookElectron
, which is currently a popular desktop application development tool.
Reference:
https://www.oschina.net/p/ele...
天蓬老师2017-04-18 10:18:09
If you want to develop desktop programs for Windows now, it is basically the ones mentioned above.
If you only consider the windows platform, then it is best to use winform or wpf. After all, it is natural, and it is indeed easy and beautiful to develop.
If you want to consider cross-platform, you can choose swing or Qt.
PHP中文网2017-04-18 10:18:09
Those who use XML-like layouts on the desktop now include the outdated DirectUI (C++), Qt's Qt Quick (C++), Microsoft's outdated WPF and the newly launched UWP (C#), as well as the more fashionable ones based on Node. Electron for js (HTML+JS).
Java desktop development generally uses Swing and other writing interfaces, and uses code to control the layout. One is that it may not match the system style (Java has its own Look and Feel), and it is slow and the experience is poor. Typical representatives include NetBeans ( Good-looking but slow) and Eclipse (ugly but slow). Basically no one uses the new project.
C# has WinForms and WPF. The former is close to the native program, and the layout is also controlled by code, but the IDE can directly drag and drop the design interface. The latter is more suitable for more gorgeous graphics programs. WPF is slower so few people use it. C# now has a UWP program launched by Win10, but it does not support previous systems and is currently rarely used.
Electron is an encapsulated HTML engine of Chrome. It can flexibly design the interface with HTML and control it with JS. It is more suitable for B/S applications. It is a little slow, but it can be very smooth if written well, such as Visual Studio Code.
PHP中文网2017-04-18 10:18:09
Thanks for the invitation.
Regarding this aspect, I only played swing when I was in school. I don’t feel qualified to speak. However, it seems quite convenient to see others using C# to do this under VS.
PHP中文网2017-04-18 10:18:09
Domestic Javaers rarely play with Java GUI, this thing is really weird! When I was in college, I used Netbeans to drag and drop to add controls. I felt like I didn't even learn the basics. I had never used a GUI after I graduated, and I really had no say. .
迷茫2017-04-18 10:18:09
Windows desktop program, if you don’t consider cross-platform, but if you consider the time cost, C# is definitely the first choice
C# uses winform or wpf, while WPF uses XAML for layout, and the syntax of xaml is based on xml.
巴扎黑2017-04-18 10:18:09
If you develop Java interface, you use Java swing or javafx to write the interface. Most of them use javafx to write the interface