Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Graphcal User Interfaces In Java, How do you make them?
.:Brian:.
post Sep 26 2007, 03:30 PM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 219
Joined: 13-February 07
Member No.: 20,371



Ok, right now I am currently using eclipse, however I can change to whatever if there is something else that would be better for this. But I have made a number of java applications, but they all simply use the command line for doing their user input and output. However, I have been interested in learning how to program graphical user interfaces in java, and was wondering if somebody could point me in the right direction, with some easy to understand and follow tutorials.

Also, once I have done that, what about making a java program that can be easily executed? (I know that this would probably make it OS dependant, by making files such as .exe, and such), but is there an easy way to do this? Do I simply make a program in some other language that acts as some sort of a wrapper around the java application somehow? I am just curious as to how to do this in order to make an application that is easily distributable and runnable over a number of platforms (I don't want people to have to worry about people going to the command line and running a ton of stuff in order to get it to work)

Thanks for the help,
Brian
Go to the top of the page
 
+Quote Post
polarysekt
post Dec 5 2007, 04:58 AM
Post #2


Advanced Member
Group Icon

Group: Members
Posts: 128
Joined: 12-February 05
From: St. Louis, MO
Member No.: 2,612



i would definately check out AWT and SWING for GUI dev...

as far as compiling JAVA to be machine-dependent... it's a little abstract as it defies the purpose of JAVA ("Compile once, run everywhere")

maybe check out:
http://www.thisiscool.com/gcc_mingw.htm

look into the gcj varieties... good luck if you're still looking smile.gif
Go to the top of the page
 
+Quote Post
Andres Martinez ...
post Dec 16 2007, 08:05 AM
Post #3


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 19
Joined: 14-December 07
From: Mexico
Member No.: 26,890



QUOTE(.:Brian:. @ Sep 26 2007, 09:30 AM) *
Ok, right now I am currently using eclipse, however I can change to whatever if there is something else that would be better for this.


Eclipse is a good java IDE if you just want to code Java without creating an interface because you will need to code it all (yes i know it takes a lot of time and sometimes a little bit boring).

Well there is another IDE that will be your perfect solution. It is Neatbeans! It has became one of the post famous and more used programming environment not only for Java, also for C/C++ applications and for creating UML diagrams and generating code from it (since version 6.0).

Netbeans allows you to easy create GUI by just dragging to the screen components such as textfields, labels, buttons, radio buttons, text areas, panels, and many other cool components. It support both the java.awt interface or the javax.swing. I heard that Netbeans won a prize because their GUI's building tool not only allows you to put components, it also have auto-align and auto-size functions that makes very easy to create professional user interfaces in minutes. It also has a preview button to easily view your interface without compiling you whole application.

Well this are only a few advantages of netbeans, I only mention these few because you ask about building interfaces; but it has many other features as managing classes in packages, to create test clases, deploy the application by creating the JAR file automatically, debugging, templates, and more!

The netbeans site is:
www.netbeans.org The only IDE you need for developing any application!
Go to the top of the page
 
+Quote Post
java-area
post Feb 4 2008, 03:16 AM
Post #4


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 47
Joined: 4-February 08
Member No.: 28,119



There are 2 main types of java-based GUI:

1. AWT/Swing elements are used in standalone Java applications and Java applets.
Many commercial IDE (like JBuilder) provide a very good builders for AWT/Swing user interfaces. You can simply create a form and put on it all necessary AWT/Swing elements (buttons, textboxes etc.) using drag and drop method, which provides an opportunity for immediate visual control of your form.
However, you can create such forms using java.awt and javax.swing packages in you Java code.

2. HTML forms are used in WEB applications.
HTML page can be created simply using any text editor (Notepad/Wordpad). I often do this for javascript-s debugging or for some testing purposes.
I think, today the most advanced technology for java-based Web applications is Java Server Faces (JSF). It is open-source. I use JSF tags directly in Eclipse text editor: unfortunally, no immediate visual control (I need every time to redeploy the application for visualising any changes).
But I do not know any good FREE tools for creating Java-based Web interfaces.

This post has been edited by java-area: Feb 4 2008, 04:06 AM
Go to the top of the page
 
+Quote Post
Moo64c
post May 30 2008, 02:35 PM
Post #5


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 8
Joined: 30-May 08
Member No.: 30,660



As others said: AWT/Swing. But for a begginer, I'd suggests you download Netbeans. It has a really nice drag-and-drop feature to make basic 2D forms (and later can be used in 2D and even 3D Graphics). Make a few of these in Netbeans and look at the code. Should be under 'generated code'. just open it up and look at it. It's quite nice to have a direct example...
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. java.lang.NullPointException(4)
  2. Java Unlimited(14)
  3. Array Sorting(21)
  4. What Are The Advantages Of Java Vs C++?(15)
  5. Need Help: Find Lowest Character Using Java(7)
  6. Download Java Ebooks(13)
  7. Java By Example(8)
  8. Video Streaming In Web Browser Through Java Or Jsp(1)
  9. Looking For A Java IDE(25)
  10. Java App To Web App(12)
  11. On Why Java Is 'c'ooler!(10)
  12. How To Configure/intergrate Jboss 4 With Java?(1)
  13. Other Sound Format Support(3)
  14. Java Phone Book(2)
  15. How To Create Exe File In Java?(12)
  1. How Do I Test A Java Aplication(11)
  2. Mozilla And Java!(2)
  3. Need To Modify Xml Attribute Using Java(4)
  4. Bluetooth And Java(5)
  5. Java Sdk Vs. Java Jdk?(2)
  6. Java Db Help Pls(2)
  7. Loading 3d Models In Java?(2)
  8. Java Applet Loading Error(5)
  9. Setting Up Java Correctly(8)
  10. Java Java.security.accesscontrolexception(6)
  11. Simple Java Question(3)
  12. Java And Sql: Data Mismatch(6)
  13. Java Memory Leak?(0)


 



- Lo-Fi Version Time is now: 30th August 2008 - 04:06 AM