Walid
Walid

Reputation: 73

How do you create GUIs in Java?

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 package 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?

Upvotes: 3

Views: 253

Answers (2)

setzamora
setzamora

Reputation: 3640

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

Upvotes: 4

jmq
jmq

Reputation: 10370

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

Upvotes: 5

Related Questions