Hi!
I am trying to show the contents of one of my timer controls in a label. For example, I would like to set the timer interval at 15 seconds and have it count down to zero. How would I show this in the label? Please let me know if you have any suggestions.
Thanks!
Hi!
I am trying to show the contents of the timer control in a label. For example, I would like to set the timer interval at 15 seconds and have it count down to zero. How would I show this in the label? Please let me know if you have any suggestions.
Thanks!
Hi!
I am creating a simple program where I have animated an image using the timer control. When I click on the image I would like the timer.enabled = false. I'm not sure of the best way to go about doing this. Does anyone have any suggestions?
Thanks!
I want to display the text on a GUI window and I have read the Java documentation for JLabels. I am still not sure how to display both "Hello, " and the input from the user. Does anyone have any other suggestions? Thanks!
I am working on a simple program where in the code below I need to display "Hello, (name entered)!" instead of "A very good name!". I'm not sure how to display the input from the user to the screen. Does anyone have any suggestions on the best way to do this? Thanks...
Now when I try to run the program, I am getting the following errors. I'm not sure what's wrong...
"Doctor.java": Error #: 300 : class string not found in class Doctor at line 38, column 12
"Doctor.java": Error #: 300 : class string not found in class Doctor at line 48...
Sorry about that. I made some corrections to the code and posted it below.
public class Doctor extends Person
{
private string specialty;
private double officeVisitFee;
public Doctor()
{
super();
specialty();
officeVisitFee = 0;//Indicating no number...
The following is a definition of a class named Doctor that I created whose objects are records for a clinic’s doctors. This class is derived from the Person class I have also included below. The Doctor record has the doctor’s name (Inherited from the Person class), specialty (i.e...
This program prompts a user to enter a complete sentence (including a period). The program should read in the sentence and output a list of all letters the sentence contains in alphabetical order. It uses an array to store the letters that the program reads in from the sentence but should not...
I am getting the following run-time error when I try to run the program below. "sumOfInts.java": Error #: 300 : method sumOfInts(int[]) not found in class sumOfInts at line 24, column 20
Does anyone have any suggestions on what I am doing wrong?
public class sumOfInts
{...
I am working on the program below. I am trying to implement a static recursive method where indicated that has one parameter for an array of integers, which returns the sum of the elements in the array. I am not sure of the best way to do this. Does anybody have any suggestions? Thanks...
I am working on a simple program. I am having problems with the lines beginning with two of the lines. The first problem is the line beginning with int.numEntered. The second problem is with my static method generateStats. I'm not sure how to incorporate a method other than the main method...
The following is my code for a simple program I am doing. I'm not sure why the line containing .equalsIgnoreCase isn't working. Does anyone have any suggestions?
import javax.swing.*;
public class Assignment4
{
public static void main(String[] args)
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.