Comment

ogbodo mercy ujunwa
kudos,
October 23, 2010 at 10:45 PM

I want to comment on the simiplicity of this code, kudos to you.

please if I may ask, the bracket closing the braces after system.exit (o); if is normal, also the semi-colon (;) is it meant to close the bracket since its not a stetement?
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
General

How to Create Circle In Java
How to Create Circle In Java       Introduction: This is a simple program of java awt. In this section, you will learn how to create Circle Diagram. The java circle is the most 

Java-Tutorials

Create a Container in Java awt
Create a Container in Java awt       Introduction This program illustrates you how to create...; } } Download this example 

Java Beginners

Java Circle to Circle collision detection
Java Circle to Circle collision detection  Java Circle to Circle collision detection 

General

Java AWT Package Example
This program shows you how to create a frame in java AWT package... will learn how to create Button on  frame the topic of Java AWT package... In this section, you will learn how to create arcs diagram in java awt package. The Java 

Java Beginners

How do I handle the reaction of a circle and a semi-circle colliding in java?
How do I handle the reaction of a circle and a semi-circle colliding in java?  How do I handle the reaction of a circle and a semi-circle colliding in java 

Java Beginners

area of a circle - Java Beginners
area of a circle  Write a class circle which consists of functions getdata() and area(), and also write a main program to create a circle object and to find the area by calling the function area () in circle class and display 

Java Beginners

awt
Java AWT Applet example  how to display data using JDBC in awt/applet 

Java Beginners

Java GUI code- creating a circle
Java GUI code- creating a circle  My assignment is to write a program that prompts the user to enter the center and a point on the circle, which is (x,y)(x2,y2). The program should then output the circle's radius, circumference 

Java Interview Questions

Java AWT
Java AWT  How can the Checkbox class be used to create a radio button 

Swing AWT

How to create a Java Runtime Editor - Swing AWT
How to create a Java Runtime Editor   Hi, I am working on a requirement in which I need to integrate a java runtime editor in swing application... using java swing, try the following code: import java.awt.BorderLayout 

Java Beginners

Circle question - Java Beginners
Circle question  Hey You helped me with one this question already... that uses Circle class you created in the previous assignment. ? The program includes a static method createCircle() that o reads a radius of a circle from 

Java Beginners

awt in java
awt in java  using awt in java gui programming how to false the maximization property of a frame 

Applet Questions

Java gui program for drawing rectangle and circle
Java gui program for drawing rectangle and circle   how to write java gui program for drawing rectangle and circle? there shoud be circle.... and the program must also show message dialog "this is a red circle" when click 

Java-Tutorials

Create a Frame in Java
Create a Frame in Java       Introduction This program shows you how to create a frame in java AWT package. The frame in java works like the main window where your 

Java Beginners

Method which returns area of circle - Java Beginners
Method which returns area of circle  Need simple Java Method example that returns area of circle  Java Example CodeWith the help of given Java code you can return the area of a circle and give the radius 

Java Tips and Examples

Write a program to calculate area and perimeter of a circle
Write a program to calculate area and perimeter of a circle... example will teach you the method for preparing a program to calculate the area and perimeter of a circle. First of all name a class as "CircleArea" 

Java Beginners

How to create charts in Java?
How to create charts in Java?  Is there any example of creating charts and graphs in Java? thanks   Hi, check the tutorial: Chart & Graphs Tutorials in Java Thanks 

General

java awt package tutorial
Java AWT Package In Java, Abstract Window Toolkit(AWT) is a platform independent widget toolkit for windowing, graphics, and user-interface. As the Java... is used by each AWT component to display itself on the screen. For example 

Applet Questions

AWT Tutorials
AWT Tutorials  How can i create multiple labels using AWT????   Java Applet Example multiple labels 1)AppletExample.java: import javax.swing.*; import java.applet.*; import java.awt.*; import 

General Information

What is AWT in java
In this example We have create frame in java AWT package. The frame in java works... What is AWT in java In this Example we will describe awt in java. The awt in java stands for Abstract Windowing Toolkit and is a package 

Swing AWT

Java Dialogs - Swing AWT
/springlayout.html http://www.roseindia.net/java/example/java/awt/borderlayout-example... visit the following links: http://www.roseindia.net/java/example/java/swing...Java Dialogs  a) I wish to design a frame whose layout mimics 

Java-Tutorials

How to Create Button on Frame
How to Create Button on Frame       In this section, you will learn how to create Button on  frame the topic of Java AWT package. In the section, from the generated output 

Swing AWT

java - Swing AWT
java  how to use JTray in java give the answer with demonstration or example please 

Swing AWT

awt - Swing AWT
, For solving the problem visit to : http://www.roseindia.net/java/example/java/awt/ Thanks... market chart this code made using "AWT" . in this chart one textbox when user 

Swing AWT

Reports in java - Swing AWT
How to create Reports in Java  How to create reports in java. The report should come from the access It should be displayed in the JTable and should be updated automatically when the user is saved a record in the JTable 

Applet Questions

By using Applet display a circle in a rectangle
By using Applet display a circle in a rectangle  Write a java applet to display a circle in a rectangle 

Swing AWT

java swings - Swing AWT
. http://www.roseindia.net/java/example/java/swing/draw-simple-bar...java swings  I am doing a project for my company. I need a to show the performance of the employees by using bar bharts. Please give me how can we 

Swing AWT

java - Swing AWT
Java Implementing Swing with Servlet  How can i implement the swing with servlet in Java? Can anyone give an Example??   Implementing Swing with Servlet Example and source Code Servlet SwingToServlet 

Java Beginners

Need to create a java applet
Need to create a java applet   Hi people i need to create a java... a circle. When i click small the circle should be small and when i click big the circle should be big in size. No matter how many times i click it should still 

Swing AWT

java swing - Swing AWT
java swing  how to add image in JPanel in Swing?  Hi Friend, Try the following code: import java.awt.*; import java.awt.image....: http://www.roseindia.net/java/example/java/swing/ Thanks 

Swing AWT

java - Swing AWT
java  how can i add items to combobox at runtime from jdbc   Hi Friend, Please visit the following link: http://www.roseindia.net/java/example/java/swing/AddRemoveItemFromCombo.shtml Thanks  Hi Friend 

Java Interview Questions

Java AWT
Java AWT  What interface is extended by AWT event listeners 

Swing AWT

java-swings - Swing AWT
java-swings  How to move JLabel using Mouse? Here the problem is i have a set of labels in a panel. I want to arrange them in a customized order...://www.roseindia.net/java/example/java/swing/ Thanks. Amardeep 

Swing AWT

Java - Swing AWT
. http://www.roseindia.net/java/example/java/swing...Java  How can I run an application of Microsoft Windows like notepad...("Paint example frame") ; getContentPane().add(new JPaintPanel 

Swing AWT

java - Swing AWT
java  hi can u say how to create a database for images in oracle and store and retrive images using histogram of that image plz help me its too urgent 

Java Beginners

how to create notepad in java
how to create notepad in java  how to create notepad in java 

Swing AWT

Java - Swing AWT
Java  write a servlet program to create a form which accept user information and find the number of visit to the page  Use this concept, to find how many times this page is accessed by users ublic class 

Java Beginners

java awt components - Java Beginners
java awt components  how to make the the button being active at a time..? ie two or more buttons gets activated by click at a time 

Swing AWT

create, edit ,open simple documents using java - Swing AWT
want to use Java Swing or JSP? Do you want to create word document file...create, edit ,open simple documents using java   In my program I have a text area.How to create document which will contain text in text 

Swing AWT

java - Swing AWT
java  how can i link up these two interfaces ie CurrentAccount... import java.awt.FlowLayout; // specifies how components are arranged... label3.setText( "Fill in the spaces below to create a Current Account 

Java Interview Questions

Java AWT
Java AWT  What is meant by controls and what are different types of controls in AWT 

Swing AWT

awt list item* - Swing AWT
information. http://www.roseindia.net/java/example/java/awt/ Thanks...awt list item*  how do i make an item inside my listitem...); choice.add("Java "); choice.add("Jsp"); choice.add("Servlets 

Java Beginners

How to create a class in java
How to create a class in java  I am a beginner in programming and tried to learn how to do programming in Java. Friends please explain how can I create a class in Java 

Java Beginners

create
create  how to create an excel file using java 

Java Magazine Questions

How to Create Keyboard in JAVA
How to Create Keyboard in JAVA  please help me to create On-Screen Keyboard with java and please give me an another idia to make it ..............iam waiting for your help ,think u so much 

Swing AWT

Java Problem Steps - Swing AWT
Java Problem Steps  How to create a Jar File From the Dos prompt of a Swing program having two classes in the program with one is public class one of them 

Java Beginners

java-awt - Java Beginners
java-awt  how to include picture stored on my machine to a java frame? when i tried to include the path of the file it is showing error. i have... information, http://www.roseindia.net/java/ Thanks 

Java-Tutorials

How to create CheckBox On frame
will learn how to create CheckBox on the frame. In the Java AWT, top-level windows... How to create CheckBox On frame     ... with the full description. If you are fresher in java awt programming then you 

Date Calendar

date and time in awt(java)
date and time in awt(java)  sir, do you have an example of date in awt java which can be view over a textfield.   Display time in JTextField import java.util.*; import javax.swing.*; import java.awt.event.*; public 

Java-Tutorials

Event handling in Java AWT
Event handling in Java AWT     ... events in java awt. Here, this is done through the java.awt.*; package of java... can implement the event driven application. This example shows you how to handle 

General

How to calculate area of Circle
How to Calculate Area of Circle   ... of calculating  the area of circle. In this program you will be taught each and every... below. Description of program: In this section we will learn how to use of static 

Swing AWT

java - Swing AWT
information, http://www.roseindia.net/java/example/java/awt/ Thanks...java  i want a program that accepts string from user in textfield1 and prints same string in textfield2 in awt   hi, import java.awt. 

Java Beginners

How to Create Car Rental Application in Java ?
How to Create Car Rental Application in Java ?  Hi, How to Create a Car Renal Application using Java to Check the Car renting, booking and availability of vehicles. Please suggest me any Online reference or example for creating 

Swing AWT

Java - Swing AWT
Java    Hi friend,read for more information,http://www.roseindia.net/java/example/java/swing 

JDBC Questions

java
java  how we can create purches order format by using the java awt 

Java Beginners

java
java  how we can create the purches order by using the java awt 

Java Beginners

java
java  how we can create purches order format by using the java awt 

Java Beginners

java
java  how we can create purches order format by using the java awt 

Swing AWT

SWINGS - Swing AWT
in showInputDialog in another class. how to do this.   Hi friend, For read more information,Examples and Tutorials on Swing,AWT visit to : http://www.roseindia.net/java/example/java/awt/ http://www.roseindia.net/java/example/java 

Swing AWT

java - Swing AWT
java  How can my java program run a non-java application. Will it be possible to invoke a gui application using java 

Swing AWT

how to create reports in swing java?
how to create reports in swing java?  how to create reports in swing java 

Java Beginners

How to create new arraylist using Java
someone provides online example how to create new arraylist in java programming. thnaks,   Hi, In java programming language you can create new...How to create new arraylist using Java  hi, I want to develop 

Swing AWT

Java Program - Swing AWT
Java Program  A program to create a simple game using swings.  Hi Friend, Please visit the following link: http://www.roseindia.net/tutorial/java/swing/guessNumber.html Thanks 

Swing AWT

How to create form in Swings
- Examples how to create registration form in swing swing login form example swing form example java...How to create form in Swings  How to create registration, login 

Java Beginners

java awt calender
java awt calender  java awt code for calender to include beside a textfield 

Applet Questions

JAVA AWT BASE PROJECT
JAVA AWT BASE PROJECT  suggest meaningful java AWT-base project 

General

BorderLayout Example In java
BorderLayout Example In java       Introduction In this section, you will learn how to create BorderLayout in java awt package. The Border Layout is arranging and resizing 

Swing AWT

Java - Swing AWT
How to start learning Java   I am a Java Beginner ...so, please guide me how to start 

Programming Tutorials

How to draw a circle bucket, draw a circle bucket, circle bucket
How to draw a circle bucket       This example has a simple way to learn easily to make a circle shape... style: Go to Layer menu > Layer style > Bevel and emboss. Draw Circle 

Swing AWT

java - Swing AWT
What is Java Swing AWT  What is Java Swing AWT 

Programming Tutorials

Java MappedByteBuffer example, How to create mapped byte buffer in java.
Java MappedByteBuffer example, how to create mapped byte buffer in java. In this tutorial, you will see how to create mapped byte buffer in java. Code...;} } } Output C:\>java CreateMapBuffer RoseIndia 

Programming Tutorials

Java MappedByteBuffer example, How to create a large size file in java.
Java MappedByteBuffer example, How to create a large file in java. In this tutorial, you will see how to create a large file with the help of MappedByteBuffer class in java. Code import java.io.RandomAccessFile; import  

Design concepts & design patterns Questions

how to create interfaces in java
how to create interfaces in java  HI, Here is my code public interface validateInfo { public void validate(String empcode, String password); } class updateInfo implements validateInfo { public void update() { //code 

Java Tips and Examples

Java AWT Package Example
 

General

How to create LineDraw In Java
How to create LineDraw In Java     ... will learn how to create Line Drawing. This program  implements a line Drawing component. A java program explains the stroke line i.e. how to make thick 

Swing AWT

Java Code - Swing AWT
Java Code  How to Make an application by using Swings JMenuBar and other components for drawing various categories of Charts(Line,Bar etc 

Java Beginners

how to implements jdbc connections using awt?
how to implements jdbc connections using awt?   My name is Aditya... information about how to implements jdbc connections in awt.please give me sample example awt with jdbc.   We are proving you a simple application 

Java Beginners

Create a Table - Java Beginners
Create a Table in Java  How can i create table in Java?  Java Example Code - Creating table in JAVA- - - - - - - - - - - - - - - - - - - - - - Hi, here i am giving you a java program code, that creates a table with two 

Java Interview Questions

Java AWT
Java AWT  What is the relationship between the Canvas class and the Graphics class 

Swing AWT

java swing - Swing AWT
java swing  how i can insert multiple cive me exampleolumn and row in one JList in swing?plz g  Hi Friend, Please clarify your question. Thanks 

Swing AWT

java swing - Swing AWT
to set to proxy settings through which it should load the web page. How to set a proxy or how to make my java web browser to listen to proxy setting??? please help...java swing   Iam developing a java web browser.Actually my code works 

Java Beginners

How to create first program in Java?
How to create first program in Java?  Hi, I am new in Java programming. Tell me How to create first program in Java? Thanks   Hi, Read more at First Java Program. Thanks 

Swing AWT

Help Required - Swing AWT
JFrame("password example in java"); frame.setDefaultCloseOperation...(); } }); } } ------------------------------- Read for more information. http://www.roseindia.net/java/example...Help Required  How to bring password field in JDialogueBox???  

Swing AWT

java - Swing AWT
java  hello sir.. i want to start the project of chat server in java please help me out how to start it?? urgently....  Hi friend, To solve problem to visit this link....... http://www.roseindia.net 

Swing AWT

AWT-swings tutorial - Swing AWT
://www.roseindia.net/java/example/java/swing/ http://www.roseindia.net/java/example/java...AWT-swings tutorial  hello sir, i am learnings swings and applets.. i want some tutorials and some examples related to swings.. thank you sir 

Java Interview Questions

Java AWT event hierarchy
Java AWT event hierarchy  What class is the top of the AWT event hierarchy?  The java.awt.AWTEvent class is the highest-level class in the AWT event-class hierarchy 

Java-Tutorials

JDBC : Create Database Example
JDBC : Create Database Example In this section you will learn how to create database using JDBC with example. Create Database : Database is an organized... we don't need to think how data is related and how to get data from 

Swing AWT

How to save data - Swing AWT
to : http://www.roseindia.net/java/example/java/swing/ Thanks...How to save data  Hi, I have a problem about how to save data ,but first before data save to dababase, data must view in jLisit or Jtable 

Swing AWT

java swing - Swing AWT
java swing   how i can insert in JFrame in swing?  Hi Friend, Try the following code: import java.awt.*; import javax.swing.*; import java.awt.event.*; class FormDemo extends JFrame { JButton ADD; JPanel 

Java-Tutorials

Create File in Java
in string, rows, columns and lines etc. In this section, we will see how to create a file. This example takes the file name and text data for storing to the file... Create a File        

Swing AWT

java swing - Swing AWT
java swing  how to save data in sql 2005 while insert in textfield  Hi Friend, Try the following code: import java.sql.*; import javax.swing.*; import javax.swing.border.*; import java.awt.*; import 

Java Beginners

Creating circle inside a circle
Creating circle inside a circle  hi can any one give code for following output by awt/swing creating circle inside a circle ,outside cirlce and intersect a circle 

Swing AWT

java code - Swing AWT
java code  Hello .anyone can plz tell me code for this .First create a button wen it is clicked its enters into another window asking for Name .After we typed name in field then it would check in file which we created initially 

General

How to Create CurveDraw In Java
How to Create CurveDraw In Java       Introduction In this section, you will learn how to create..., enables you to create a quadratic or cubic segment. Here, you will see 

Swing AWT

Java question - Swing AWT
Java question  I want to create two JTable in a frame. The data in one JTable will be shown as a result of a query i.e. the data in a resultset. This query is fixed. This query is "select * from item". Item table has following 

Swing AWT

Java - Swing AWT
Java   I have write a program to capture images from camera and scanners,I got image in panel but how should i save this image through save dialogbox at any location ...plz help  Hi Friend, Try the following code 

Swing AWT

Java Code - Swing AWT
Java Code  How to Display a Save Dialog Box using JFileChooser and Save the loaded Image from Panel in any Location.  Hi Friend, Try the following code: import java.io.*; import java.awt.*; import java.util. 

Swing AWT

JAVA - Swing AWT
JAVA  Sir how can i design flow chart and Synopsis for random password generation by using swing in java .  Hi Friend, Try the following code: import java.io.*; import java.util.*; import java.awt.*; import 

Swing AWT

Java - Swing AWT
Java  How can I interact with a hardware like scanner, barcode-reader or a digital camera through my created swing program 

Swing AWT

JList - Swing AWT
JList  May i know how to add single items to JList. What is the method for that? You kindly explain with an example. Expecting solution as early...("Suman"); //Create the list and put it in a scroll pane. list 

Advertisements Advertisements
 

 

 

DMCA.com