35,617 Topics
![]() | |
I am trying to develop an application that can display four clocks in a frame that update at the following intervals: 1 second, 5 seconds, 30 seconds and 60 seconds, here is the code so far. Timer.java import javax.swing.*; public class Timer extends Thread { private int waitTime; private JPanel … | |
:confused: I'm going to use a tertiary tree to navigate through a series of photos. This will hopefully allow someone to "walk" through these photos as if on a tour. I was wondering if anybody had any advice on tertiary trees, do I just construct them as you would a … | |
I have a small problem with doing calculations in one java class and trying to refer to the varibles in another class. I have written a GUI program that performs certain calculations and then when a button is pressed, the values obtained are saved as variables in another Java class … | |
hello, please if someone can tell me how to start and find how to program feature to cellular. i want to write some program to download to cellular and work with it. please help me | |
Hello: I am a student and am attempting to write a multidimensional array for a Mortgage Calculator program. We have to display three different mortgage's that display 3 different interest rates and term years that show the calculated mortgage payment amount. I have the following code and am receiving many … | |
hello guys, i have a manipulation screen using Jinternal Frame which is a child frame accessed from the main frame. the child frame has save command wherein updates for a specific record is made. i use ActionListener event in the save button but i dont know exactly what codes will … | |
:sad: I am overwhelmed and need help. I am trying to write object oriented programning using Java code. 1st Class contain variables for firstname, lastname and SSn as string. 4 different class scores as integers with different weights for the depending upon the course. I've also included set and get … | |
Hi all, I am new to Java, I have been playing a video file using Java JMF in applets but am unable to play it in a browser, the program runs well while using appletviewer <filename>. I am worried about it :cry: , it is really very important for me … | |
I have been writing a Gui in JBuilder 3 which has 3 textFields for data input. I then want the Gui to perform a calculation and print the inputed data along with the calculation into a textArea, but when I click on my "compute" button nothing happens. Does anyone have … | |
[color=royalblue]Okay, if I could, I would shoot my CS teacher, and then shoot myself. Reality check. Done. Anyways, check out this yucky program right here...I don't even know where to begin...we need to create a new drawing pad; and by using two methods, we would have to create this illusion … | |
Hi everyone, I have a question about the graphics 2d. I have a buffered image which i read in and what i want to do is to draw a simple black line around this image something like a simple border(nothing fancy). This is what i have so far Dimension Size4 … | |
I posted this on devshed.com's forums, but I have gotten no replies :sad: . I am working on a program that reads data values from a file and uses them to compute the output. It is a tapemaker program that figures out how many minutes and seconds the songs take … | |
Hi, Firstly, thanks for letting me join. Hopefully you guys can help me and vice versa. I've just started a project creating a virtual map. This map will allow uses to walk around a town using digital photographs. I was just looking for some advice as I cant decide whether … | |
Hi, just wondering if anyone could help with a little problem. I'm designing a GUI that models the behaviour of a gas turbine engine. I need to add a graph i have scanned into my computer onto the GUI frame, and also use the mouse cursor to click on the … | |
How do i debug the application attached consisting of four Java classes [code] *************** Pictures of screen shots to go here ***************** Color.java public class Color extends Object { private String color; public Color() { return setColor( "" ); } public void setColor() { color = "black"; return color; } … | |
Need a hand with some method logic here, I got all the code written but I am having an issue trying to get this logic to work. These two methods are designed to simplify fractions and convert improper fractions to mixed numbers ( two seperate methods). Take a look and … | |
hi i need to help me this is my calculator code but it's not work with me and i don't know what is the problem in this code can you help me to solve it and tell me what is the problem . thank you . import java.awt.*; import java.awt.event.*; … | |
Hi! Having programmed in non-object oriented programming languages for a pretty long time, thinking in terms of classes and objects hurts my brain. I have written a program in BASIC (to print out the result sheet of a class after having obtained the data such as name of the student … | |
I am writing a program in java for the Shortest Job First Scheduling , have generate the Process ID and Process Time separately but i have to put both in an array and would like someone to help me please. | |
My task is to code an applet that should take 2 fractions and either add, subtract, multiply, or divide them (depending on which JButton the user uses). Then, the fraction is to be converted to lowest terms. Also the fractions will be entered in in terms of 2/5 for "two-fifths". … | |
hi, i am new in java, pls anyone help me to find out the error of my code. 1)Q- Write a java program which implements a simple sequential search algorithm for finding the position of a number in an array. My code is : [code] public class linearsearch { public … | |
Please help me! My program does not work 1-I have problem wihte constructors parameters 2-I have problem whit toString methode. User writes(from keyboard): workers name, hourPayment, and time(how many hours he has worked, first week, second week....). The out put is like this: his(name) salary is.....$ for first week his(name) … | |
hi I will be thankful to anybody tells me how can I convert java/sql code to asp.net/sql2000 code. thanks. | |
hi, i have to create a solitaire game, i'm having trouble moving cards, if i move one the program will repaint it but will replace the moved card with another one if you try to move another card from a different pile. the code i currently have for this project … | |
HI I'm very new to java. I have multiple JTextfields(about 11) on my JFrame. They are arranged in 1 column down my Frame. I would like to know how to move from the first JTextfield to the JTextfield of my choice(eg.It must move from 1st JTextfiled to the 5th JTextfield … | |
I am trying to set up a jsp page which takes input from any form and filters out user input which may pose a security risk. I am using the following function to try to do this: [CODE] <%! private String checkInput(String test){ String bad_input = ""; boolean someBadInput = … | |
i am trying to have macromedia flash button send a double or a symbol like (+, =, &) to a java program. the java program will save the input on an arraylist. while the flash button sends doubles it simply puts them on the arraylist, but if a symbol comes … | |
Hi, i am new to java..... i was wondering if someone can hlep me with the code to substitute the use of showInputdialog. currently i am using the following code to recieve Strings, but i do not want to use the java dialog boxes. is it possible to do something … | |
i am trying to have macromedia flash button send a double or a symbol like (+, =, &) to a java program. the java program will save the input on an arraylist. while the flash button sends doubles it simply puts them on the arraylist, but if a symbol comes … | |
Hey, I've been programming for sometime now and one thing I've never had to do is any sort of "debugging". I was just wondering if someone could help explain to me the process and the purpose of it. Thanks! :lol: |
The End.