thanks a lot it worked...stupid error that costed me hours. But thats programming sometimes.
Type: Posts; User: Bradshjo
thanks a lot it worked...stupid error that costed me hours. But thats programming sometimes.
I am making a simple program the user enters in a number using JButtons 0-9 and then the user clicks gallons or miles to add the number to one or the other. Here is my code:
import...
I have to roll a pair of dice and count the number of box cars (two sixes) that occur, here is what I have:
import java.util.*;
public class BoxCar{
public static void main...
ok i found out how to do it...thanks
Ok when I did the print out, pushing the increment button worked, it keep adding on top of the set value of 50. But what I want to do is to have the JLabel figure that is at 50 currently to increase...
Ok so I have to use two buttons, one increment and one decrement. Also I must display a label with a number in it. When one of the buttons are pushed, the number in the label will either decrease...
I need help inserting a picture, I would like the picture centered and on top of the JPanel above "JLabel Header 1"...where and how would i do this? I have this so far:
ImageIcon icon = new...
How do you use substring to chop of the rest? I got this so far:
System.out.println("Please enter the Driver's first name: ");
String fName = scan.next();
fName =...
I can't get this to work:
Have the name (first and last) appear using the following format: all letters are lower case except for the first letter of the first and last name: (e.g., John...