Sunday, July 12, 2009

How to build a simple JAVA interface?

I've worked recently on a simple java program.


I desire to build a nice Graphical User Interface for it but I am no programmer really...


Is there some program to "build" an interface without the knowledge of java (i.e. something for java like what frontpage is for html)? And for c/c++?





Thank you in advance

How to build a simple JAVA interface?
Use NetBeans...you can create a simple or complex GUIs using some nice drag and drop tools...no need to code anything to create the GUI (What You See Is What You Get)


Download it here: http://www.netbeans.org (it's free)
Reply:netbeans is the right option to create GUI





but i think u have to study java first
Reply:I assume you talking about web application* development well have you ever tried JSP?


Yes you need a bit of JAVA knowledge





JSP is basicaly consist of html+java code.


all java logic into


%26lt;% java code%%26gt; scriplets.





hope this will help..


Cheers:)
Reply:If you want a GUI, you would have to write a java Applet application using either notepad or any text editor you have got.


You just have to import these at the begining


import java.util.*;


import java.awt.*;


import java.applet.*;





And your class would look like this


public class %26lt;projectname here%26gt; extends Applet


implements Runnable {








But for simplicity i would advice 2 download NetBeans, you might have downloaded it already when you downloaded your Java SDK. So check you system first.





If you want to use C/C++ you can download Microsoft Virtual Studio 2005. This package from Microsoft includes easy to use GUI, like frontpage as you said. All you need to do it open a new project as a %26lt; Windows form application %26gt;





All the links for the necessary downloads are included if you want, and also a very good tutorial for java applet can be found in java.sun.com





Happy Javac "ing"


No comments:

Post a Comment