开发者

How do you create GUIs in Java?

开发者 https://www.devze.com 2023-02-20 00:41 出处:网络
I\'m using Java and I have been always looking for ways to make my program and upload it online but I don\'t know how to put my code in a graphical user interface. I want to pac开发者_运维技巧kage it

I'm using Java and I have been always looking for ways to make my program and upload it online but I don't know how to put my code in a graphical user interface. I want to pac开发者_运维技巧kage it all together so that users can just click on an icon to run it without having to compile.

How do I create graphical user interfaces for Java programs and distribute those programs online?


Learn Java Swing http://download.oracle.com/javase/tutorial/uiswing/

Learn about Java Webstart http://www.java.com/en/download/faq/java_webstart.xml

Use Netbeans for creating your GUI (or another IDE) http://netbeans.org/kb/articles/javase-deploy.html


It depends as there are several ways to create GUIs in Java.

  1. Desktop GUI (e.g. Swing, AWT)
  2. Web GUI (e.g. JSF / JSP)
  3. Mobile GUI (e.g. Android, Java ME)

The jar file alone can be distributed. If you mean creating an exe out of a jar, take a look at Jar2Exe

0

精彩评论

暂无评论...
验证码 换一张
取 消