32,199 Topics

Member Avatar for
Member Avatar for cbailey3001

How can I add a sleep(1000) to this code? I've tried but I can't get it to work. (This program is supposed to be an infinite loop) [code] [COLOR=#800080]public [/COLOR][COLOR=#800080]class[/COLOR][COLOR=#000000] ExtendedThread [/COLOR][COLOR=#800080]extends[/COLOR][COLOR=#000000] Thread {[/COLOR] [COLOR=#800080]public[/COLOR][COLOR=#000000] ExtendedThread(String name) [/COLOR][COLOR=#800080]throws[/COLOR][COLOR=#000000] InterruptedException {[/COLOR] [COLOR=#800080]super[/COLOR][COLOR=#000000](name);[/COLOR] [COLOR=#000000]}[/COLOR] [COLOR=#800080]public [/COLOR][COLOR=#800080]void[/COLOR][COLOR=#000000] run() { [/COLOR] [COLOR=#800080]for[/COLOR][COLOR=#000000] ([/COLOR][COLOR=#800080]int[/COLOR][COLOR=#000000] i …

Member Avatar for deng_cen
0
102
Member Avatar for dmkrivec

I have to write code that outputs the number of upper, lowercase digits and punctuation in a string but am having trouble with the asciival command.this is what I have so far but I recieve an error message about the use of my asciival command.an InputBox input; input= [B][COLOR=#7f0055]new[/B][/COLOR] InputBox(); …

Member Avatar for ~s.o.s~
0
136
Member Avatar for Lisi

I have home work due soon and have written most of the code there are only two parts i am having trouble with: 1.Can anyone tell me how to read the even values of an array, add them and then add the amount of even numbers there were in the …

Member Avatar for Lisi
0
65
Member Avatar for AngeloBaro

[COLOR=#000000]Hello, [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]I learn newly Java programming. [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]Because of this I have this small following question on it: [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]I must create several points from different 3 components (x, y, z), values. [/COLOR] [COLOR=#000000] [/COLOR] [COLOR=#000000]e.g: I must create 2 points and (2, …

Member Avatar for arunjain_in
0
127
Member Avatar for janda5

I have an Intel Pentium 166MHz w/MMX Computer and use Windows 98. A web site I was trying to access had this error message: "ERROR! JavaScript is required to use this site!" I then downloaded and installed JRE (Java Runtime Environment), Version 6, Update 1. I even customized my Security …

Member Avatar for The Dude
0
110
Member Avatar for Cerberus

Hi, can anyone recommend a 'simple' to use cross platform installer which is free. I've looked at a few but they look quite complex. Thanks.

0
45
Member Avatar for Toc7777

Hi all, I have a GUI based roulette game with two classes a bet screen and a main menu screen i need to know how to say if a button is pressed in the bet screen to do its operations and then close and return to the main menu screen. …

0
46
Member Avatar for Soraji

Hello everyone! I am a first year student studying computer science and I am having a little trouble figuring out how to implement this part of a program. I am writing a word search puzzle generator that takes in a list of words and dimensions (such as "cat", "animal", "fish", …

Member Avatar for Soraji
0
97
Member Avatar for tygerberg

Hi How would I go about developing a simple IM which will be used on mobile phones. By this I mean creating a database to hold all the information needed to log on, the API's needed, security and everything that makes the motor spin.

Member Avatar for Phaelax
0
87
Member Avatar for onsir

Hi, how to using function "for" to show iteration and the result put in jTextArea or jFrame. exp: i want to loop value 1 to 10, then result : 1 (iteration 1) 2 (iteration 2) . . 10 (iteration 10) I'm using netbeans Thank's

Member Avatar for Phaelax
0
95
Member Avatar for omoz4real

Pls i am a new member of dani web and i need help on implementing random images. I have got six gif images on my frame ,a JComboBox and a Button.the JComboBox displays the images if each one is clicked.I want to add an actionlistener to the Button so that …

Member Avatar for omoz4real
0
1K
Member Avatar for vivek.a.84

Hello, I am basically trying to develop some kind of automated test case generation tool, where first I need to generate the test cases and then write to excel sheet.the test case will be a set of mouse clicks and key events which needs to be recorded by my application …

0
49
Member Avatar for Adriel1990

i need help i dont know what to do, heres the psudocode and java code Function (BinaryNumber is String) returns Integer Var DecimalNumber is Integer initialized as 0 Var Power is Integer initialized as 0 Var BinaryDigit is Integer For (I (start value is length of BinaryNumber) to (end value …

Member Avatar for lucky1981_iway
0
88
Member Avatar for Legoland

Hi! I hope someone can help me out with this.I have one task left on my homework that i´m struggling with. The assignment is: Create a program in which you can put 10 words into separated by enter in the command window after that print the words backwards in the …

Member Avatar for Legoland
0
91
Member Avatar for vivek.a.84

Hi Im working in an application which will track the click made in any web based application. For Eg: If u click on a link "mail" in yahoo.com.. this application should be able to detect the link clicked. silmilarly for other radio buttons, check boxes.. etc. can someone tell me …

Member Avatar for jwenting
0
98
Member Avatar for the-new-guy-

[inlinecode] hi in school we have been set a homework task of making a game with a few simple programs! Our teacher asked us to team up and make a game lol just like that we have one month and we have sketched out some plans backgrounds ideas etc please …

Member Avatar for jwenting
0
106
Member Avatar for MenloDeveloper

Hello all, We have created a java app that creates its own file format that we can assoicate with the application in Windows. We would like for the user to be able to double click on of these files while the app is running and have the app open it. …

Member Avatar for jwenting
0
60
Member Avatar for MenloDeveloper

How can I find out where the class files are installed in a programmtic way? Thanks, Menlo

Member Avatar for jwenting
0
110
Member Avatar for Venks

Hai friends is there any way to print logo or images through serial port printer plz guide me for this ...

0
52
Member Avatar for nizam147

Hello EveryOne, i am using struts datagrid in my project can anyone help me in pagination in datagrid, that is displaying only say 10 records per page can that be done. thank you in advance

Member Avatar for nizam147
0
37
Member Avatar for monkeytuesdays1
Member Avatar for developer4321

I need help coming up with an algorithm to determine if the user clicks on any point of a line. A line is given by two points. So you have x1, y1 positions of the first point, and x2,y2 positions of the second point. I need to determine in the …

Member Avatar for developer4321
0
92
Member Avatar for kapkan

Again i (= As though authorization, i check on presence of record in db. Why that i do not receive the necessary result. Prompt in what a problem. Thankful in advance. In db the table users a kind: |id|acc|pswd |...| [code] ================== public class DrugstoreFrame extends JFrame { MsAcDatabase database; …

Member Avatar for kapkan
0
76
Member Avatar for parul195

im facing problems installing the jdbc driver on my machine.... the OS on my machine is fedora core 6... plz help

Member Avatar for jbennet
0
72
Member Avatar for Salim_22

hello there i need help on encrypting and decrypting words. this is my task i have to do: [COLOR=#000000]Implement a piece of software that can be used to encrypt and decrypt words. At its simplest, the software could use a simple translation process that replaces each letter with a different …

Member Avatar for Salim_22
0
120
Member Avatar for uswatun

import java.applet.*; import java.awt.*; import java.awt.event.*; [B]public class MathApplet extends Applet implements ActionListener [/B]{ private Label lblPrompt,lblNom1,lblNom2,lblCampur; private TextField txtNom1,txtNom2; private Button btnKira; //isytiharkan button public void init() { lblPrompt=new Label("masukkan 2 nombor integer"); lblNom1=new Label("nombor Pertama:"); lblNom2=new Label("nombor kedua:"); txtNom1=new TextField("0"); txtNom2=new TextField("0"); lblCampur=new Label("Hasil campur:0"); btnKira=new Button("Kira");//objek btn …

Member Avatar for masijade
0
108
Member Avatar for AmyChow

Hi every1, i have trouble doing my homework. Could anyone help. the probelm is everytime when i set the degree and it prints out the last degree i entered. when i use the default constructor (withour entering any infomation) to create the UndergradStudent instance, it doesn't allow me to set …

Member Avatar for masijade
0
82
Member Avatar for cjm771

Hi I want to make an applet that allows people to drag files from their desktop to the applet and it will upload through ftp. I have looked at examples of this such as rad upload and others, but when I tried to make it myself, it fails and I …

0
80
Member Avatar for Cudmore

Hey! There has been a question on my mind for a while regarding the JRE and the class loader (or, loading classes into RAM if it's different). Java classes define variable members, methods, and subclasses. I know that when you create a new instance of a class, memory is allocated …

Member Avatar for jwenting
0
157
Member Avatar for ram maradola

hi friends this is ram, in my system jdk is already instaled. now i want to instal netbeans what is the procedure, is that we have to give path like things plz tell me

Member Avatar for peter_budo
0
48

The End.