Home  >  Q&A  >  body text

java - 怎么开发windows桌面程序?

用java和c#这两个语言开发桌面程序,最先进的技术分别是什么?
我学过android开发,和android开发风格差不多的(就是用xml做布局)的java桌面开发技术是什么?c#桌面开发技术是什么?

谢谢大神们

PHP中文网PHP中文网2717 days ago1281

reply all(11)I'll reply

  • ringa_lee

    ringa_lee2017-04-18 10:18:09

    Java uses J2SE’s awt, swing or javafx, and C# uses winform, wpf or uwp.

    reply
    0
  • 黄舟

    黄舟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...

    reply
    0
  • 天蓬老师

    天蓬老师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.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:18:09

    javafx

    reply
    0
  • PHP中文网

    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.

    reply
    0
  • PHP中文网

    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.

    reply
    0
  • PHP中文网

    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. .

    reply
    0
  • 迷茫

    迷茫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.

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 10:18:09

    j2se j2me j2ee

    reply
    0
  • 巴扎黑

    巴扎黑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

    reply
    0
  • Cancelreply