Results 1 to 7 of 7
Thread: HELP needed for code
- 08-11-2013, 05:32 PM #1
Member
- Join Date
- Aug 2013
- Location
- The Netherlands
- Posts
- 1
- Rep Power
- 0
HELP needed for code
Hi, I wrote my first code about 4 years ago. I want the code in a simple GUI but I can't find a way to do it. Here's the code
/*
* om dit te veranderen ga naar Tools.
* en open de template editor
*/
package javaapplication1;
/**
* De hallo wereld Application is zeer simpel en maakt
* alleen een display van 'Hallo Wereld!'
*/
public class JavaApplication1{
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
System.out.println("Hallo Camiel,");
System.out.println("Ik ben Arjan en ik heb nu wat geprobeert");
System.out.println("met Java Applications. Dus ik heb nu");
System.out.println("een som gemaakt die toch wel ietsje moeilijker");
System.out.println("is dan anderen. kijk maar eens toe");
float a;
float b;
float c;
float d;
float e;
a = (float) 1.3;
b = (float) 1.75;
c = (float) 3.9;
d = (float) 2.4 ;
e = (float) ( a * b / c + d);
System.out.println("(1.3 * 1.75) / 3.9 + 2.4 = " + e);
System.out.println("dit was mijn som en ik deed er eventjes over,");
System.out.println("maar het is me wel gelukt dus.");
System.out.println("ik ga denk ik maar eens opzoeken hoe ik delay");
System.out.println("programeer via java, zodat ik tijd heb tussen");
System.out.println("elke regel enzo. bedankt voor de hulp die je me");
System.out.println("geeft in het computer gebied");
System.out.println("groetjes, Arjan!");
}
}
Now I want to open a program, have a button which runs the code above and then displays it into a jLabel. PLEASE HELP
- 08-11-2013, 05:34 PM #2
Re: HELP needed for code
Please go through the Forum Rules, particularly the third paragraph. Then go through the http://www.java-forums.org/forum-gui...w-members.html and BB Code List - Java Programming Forum - Learn Java Programming and edit your post accordingly.
To change the subject line, click 'Edit Post' and then 'Go Advanced'
dbIf you're forever cleaning cobwebs, it's time to get rid of the spiders.
- 08-11-2013, 05:36 PM #3
Re: HELP needed for code
You can learn about creating a Swing GUI here: Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)
If you prefer JavaFX, you can find that here: JavaFX Documentation Home | JavaFX 2 Tutorials and Documentation
dbIf you're forever cleaning cobwebs, it's time to get rid of the spiders.
- 08-11-2013, 11:01 PM #4
Just a guy
- Join Date
- Jun 2013
- Location
- Netherlands
- Posts
- 5,114
- Rep Power
- 13
Re: HELP needed for code
I don't get it. If I type "java gui" into Google I get volumes of information. Its impossible to NOT find a way to do it :/
"Syntactic sugar causes cancer of the semicolon." -- Alan Perlis
- 08-12-2013, 05:39 AM #5
- 08-12-2013, 10:06 AM #6
Just a guy
- Join Date
- Jun 2013
- Location
- Netherlands
- Posts
- 5,114
- Rep Power
- 13
Re: HELP needed for code
"Syntactic sugar causes cancer of the semicolon." -- Alan Perlis
- 08-12-2013, 11:00 AM #7
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 14,422
- Blog Entries
- 7
- Rep Power
- 29
Similar Threads
-
Testing multithreading code needed!
By heatblazer in forum Advanced JavaReplies: 3Last Post: 05-09-2013, 10:07 AM -
Help needed with custom code
By Joskhuu in forum New To JavaReplies: 1Last Post: 02-17-2012, 12:37 AM -
needed a code for this
By rajivjoshi in forum New To JavaReplies: 2Last Post: 08-01-2010, 01:26 PM -
needed code for this output
By rajivjoshi in forum New To JavaReplies: 4Last Post: 05-31-2010, 06:54 PM -
Hi code needed for JCA adaptor
By lavanya82 in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 03-04-2009, 11:34 AM
Bookmarks