Question:
About Visual programming on java...?
Charles bronson je
2010-06-10 23:52:59 UTC
Hi! I need to do a project on java for a school that needs to ve visual ( I.E. like when you make forms on visual basic and run as a simple windows program). Im studying java and Currently doing my projects on netbeans 6.8 but Cant find a way to make those forms so the user can interact with the code like if it were a WIndows program! Is there a way to do this? can people help me with a good page that explains exactly what I want?

Thanks!
Three answers:
anonymous
2010-06-11 00:59:09 UTC
Adding Code to the Generated Source File



Because you have left the Create Main Class checkbox selected in the New Project wizard, the IDE has created a skeleton class for you. You can add the "Hello World!" message to the skeleton code by replacing the line:



// TODO code application logic here





with the line:



System.out.println("Hello World!");





Save the change by choosing File > Save.



The file should look something like the following code sample.



/*

* To change this template, choose Tools | Templates

* and open the template in the editor.

*/



package helloworldapp;



/**

*

* @author

*/

public class HelloWorldApp {



/**

* @param args the command line arguments

*/

public static void main(String[] args) {

System.out.println("Hello World!");

}



}







Compiling and Running the Program



Because of the IDE's Compile on Save feature, you do not have to manually compile your project in order to run it in the IDE. When you save a Java source file, the IDE automatically compiles it.



To run the program:



* Choose Run > Run Main Project (F6).



The next figure shows what you should now see.



The program prints Hello World! to the Output window (along with other output from the build script).



Congratulations! Your program works!



If there are compilation errors, they are marked with red glyphs in the left and right margins of the Source Editor. The glyphs in the left margin indicate errors for the corresponding lines. The glyphs in the right margin show all of the areas of the file that have errors, including errors in lines that are not visible. You can mouse over an error mark to get a description of the error. You can click a glyph in the right margin to jump to the line with the error.

Building and Deploying the Application



Once you have written and test run your application, you can use the Clean and Build command to build your application for deployment. When you use the Clean and Build command, the IDE runs a build script that performs the following tasks:



* Deletes any previously compiled files and other build outputs.

* Recompiles the application and builds a JAR file containing the compiled files.



To build your application:



* Choose Run > Clean and Build Main Project (Shift-F11).



You can view the build outputs by opening the Files window and expanding the HelloWorldApp node. The compiled bytecode file HelloWorldApp.class is within the build/classes/helloworldapp subnode. A deployable JAR file that contains the HelloWorldApp.class is within the dist node.

Image showing the Files window with the nodes for the HelloWorldApp expanded to show the contents of the build and dist subnodes.
anonymous
2016-04-15 06:24:03 UTC
If you can't do these, drop out of Computer Science/Intro to Programming right now.
Seyfer
2010-06-11 01:20:12 UTC
Aunque el compilador original de Java es el Java SDK, hay otras empresas que tienen mejor compiladores como IBM que tiene el eclipse SDK.



No entiendo bien tu pregunta., pero creo que pides uno de manera visual.



Poco antes de que Oracle Adquiriera Sun Microsystem (creador de JAVA) empezo con la creacion de JDEVELOPED,



Aunque la descarga es pesada, creo que vale la pena realizarla.



http://www.oracle.com/technology/products/jdev/index.html





Espero que te sirva mi amigo,. y te invito a visitar mi pagina, http://java.Tornazol.com


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...