简体   繁体   English

开发像android这样的Java应用程序?

[英]Develop Java apps like android?

this might seem like a really strange question but I would like to develop a Java application (for my computer) like I would when I develop for Android. 这似乎是一个非常奇怪的问题,但我想像为Android开发时一样为我的计算机开发Java应用程序。 It seems like it is a lot simpler making an android app than a regular application for my computer. 似乎制作android应用要比我计算机上的常规应用简单得多。

I really miss the drag-and-drop function for your XML-file and how you can launch different intents from you java-code. 我真的很想念XML文件的拖放功能,以及如何从Java代码启动不同的意图。 Is there a similar way to do that in eclipse but for a regular application? 除了常规应用之外,是否有类似的方法可以在Eclipse中实现? I don't like having to work with JFrame :/. 我不喜欢使用JFrame:/。

Try JavaFX. 试试JavaFX。 It shares many commonalities with Android and a graphical drag'n'drop tool for building UIs (Scene Builder) that generates XML for you. 它与Android和用于构建可为您生成XML的UI的图形拖放工具(Scene Builder)共享许多共性。

There are some WYSISWYG editors for java applicaitons like JavaFX for building the layout in xml. 有一些用于Java应用程序的WYSISWYG编辑器,例如JavaFX,用于在xml中构建布局。 But i realy don't know what you would want to send intents for on a desktop PC 但是我真的不知道您要在台式机上发送意图

No. Just learn JFrame, and you will learn a lot more Java. 不,只需学习JFrame,您就会学到更多Java。 I honestly recommend you learn it, it's really helpful. 老实说,我建议您学习它,它真的很有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM