I made a small program and i used the console application. Though when the console window is displayed it disappears immediately.
Do I need to insert some sort of readline or something like that so that the window stays there?
thanks
User Profile
Collapse
-
8 x8 buttons
hey,
I would like to implement 8 buttons in the form of a square all touching each other and other 8 rows of buttons under each other. This is going to be used in the GUI. Do you suggest that I will make use of a 2d array with these boxes? Also how am i going to implement it in such a way that after a box is displayed, the next box will be displayed next to it? I know that you need to do some kind of incrementation. Though i dont know... -
calender validation
I am having a problem in finding out whether a date inserted by the user happens to be before the current todays date.
The problem is this.. The date that the user inputs is in the format of simpledateforma t dd-MM-yyyy. Therefore i cannot use the date.before() since simple date format is of type calender. Also the date that the user is going to insert is going to be placed in a text field. Therefore i need to get it from there and... -
gui problem
I have this thing that I need to accept information from a user. I have a jTextField for where the user can place the info needed (example entering his name.) My problem is this.. I need to check whether the user has placed any text in the field. Since if he did not place any text I want an informtion message to be displayed on the same screen.
I created an empty jlabel so that it would be written there.. Though i did not succeed!... -
code for a dialogue box to exit
I am trying to do this thing. When someone presses the exit button, a new window will be displayed asking the user whether he is sure to exit also 2 buttons will be displayed. One displaying yes and a one displaying no. If yes pressed the application closes if not, the user will be returned to the application. Though, I dont have an idea what code i need to place under each ActionPerformed for the button Yes and No. Can please someone help me... -
java mail API
This time my task is to send a real message to the specified email address.
The signatures for my method is
void sendEmail (EmailAddress emailAddress, String message)
I have gone through a sun tutorial regarding java mail several times and I can understand what is happening. Though my problem is that I don't know how to implement it.
In the tutorial there is an example code of how to... -
gui using netbeans
I am trying to use netbeans for gui though the palette menu and the other menu related to the button vanished. Can someone please tell me from when I can get them back?
thanks -
To tell you the truth , i searched through the API, but it didnt come into my mind to use the before()and after(). Well thanks again for your help!! :) -
switch statement
my task is to create a set of 100 random numbers between -20 and 20. Thereafter i need to count the number of -20, -10, 0 10 and 20 by using a switch statement.
Following is my code:
Code:int rnd2=0; { for (int x=1 ; x<=100 ; x++) { rnd2 = randInt(-20,+20); System.out.println(x+ "=>"+rnd2);
-
-
check for a valid date
I have another problem concerning to check if a particular date belongs in a particular range. For example I need to check whether 16th december lies between 10th December and 20th December. I have a startdate and an endDate of type Date. The Date startDate and Date endDate attributes are the ranges for a Date input. I need to check whether the attribute input lies between startDate and endDate.
Can please some1 tell me how can... -
generate a number randomly
Hey,
I need to generate an id number randomly. This number generated must be unique. Also though this number must be saved as a String. Can please some1 help me and tell me how to do this?
Thanks -
CurrentTimeMillis
I have a program which needs to calculate some time. I have an initial time and an ending time. The difference in time is given in CurrentTimeMill is. how am i going to convert this into seconds please? i.e. the difference in time for example will be given 0.5 seconds.
thanks -
-
i've been programming for about these last 2 months. I am learning java through tutorials and this is a task from an assignment. When I ve gone through the code nothing happened...Leave a comment:
-
Ok when i did that under the names coloumn there was writter 'args' and under value 'String[0] (id =16) ' and underneath there was displayed this '[]'Leave a comment:
-
-
-
yes it compiles normally without giving any errors. since i am a beginner i ve never used debugger before.Leave a comment:
-
Reading a text file
Abstract Class, Inheritance, Polymorphism, File Handling, Exception Handing
A program is to be devised for a university to work out whether or not, a student or a professor, is
outstanding. The criterion for a professor to be outstanding is to have over 120 publications. The
criterion for a student to be outstanding is to have a Grade Point Average of 3.3.
For a professor, the three class data members would be name, number...
No activity results to display
Show More
Leave a comment: