Exception errors in a Project Driver

2938 byte By eddiemjm123a at 2007-9-30 1:09:11
My project driver looks as follows:public class ProjectDriver{public static void main (String args[]){System.out.println("FANTASY FOOTBALL IRELAND STATISTICS UPDATE APPLICATION");GetDataFromServer Phase1 = new GetDataFromServer();HTMLParser Phase2 = new HTMLParser();UpdateDatabase Phase3 = new ...

Checkboxes

660 byte By dwillynta at 2007-9-30 1:09:12
Hello,I am just learning java and I want to know if you can create a list of checkboxes that are created dynamically from a resultset from a database. Ex. A database has a listing of companies identified by a number ex..(01,05,06) and so on. I pull in the result set and I want to list these on ...

Program restart question

620 byte By sorchua at 2007-9-30 1:09:25
Hi all experts,I am creating a spam filter application in which I have a filter class which has threshold, etc... parameters, I am thinking of creating a setting section in my program which changes the threshold values etc.... My existing solution requires the user to shut down the program and ...

mysql java quizz

159 byte By programmerdoca at 2007-9-30 1:09:26
Dear friends,I want to make an online quiz system using mysql and java.I am new to Java,however not new to mysql.Can anyone guide, please.

disabled command prompt (can

694 byte By qwerty32a at 2007-9-30 1:09:30
i am a student and am having constent troubles from the administrator disallowing all access to the command prompt and i need to know how to gain access to it because we have had to compile using batch files, and it is rare that we have a chance to use the command prompt to compile instead.and ...

disabled command prompt (can't compile without batch file)

735 byte By qwerty32a at 2007-9-30 1:09:31
i am a student and am having constent troubles from the administrator disallowing all access to the command prompt and i need to know how to gain access to it because we have had to compile using batch files, and it is rare that we have a chance to use the command prompt to compile instead.and ...

Keyboard and Mouse EVENT

278 byte By delamartin2002@yahoo.coma at 2007-9-30 1:10:05
I made a program in jse 1.3.it worked in appletviewer with all events(keyevent,mouseevent),but When I changed my WSAD PREFERENCES to Jse 1.4 ,it didn't work.The problem that keyboard and mouseevent aren't working.What can I do for Keyboard and mouse Events in jse 1.4 ?

If statements

83 byte By getliquida at 2007-9-30 1:10:10
how do i write the code to determine which number is bigger between the two?

simple, stupid regex question. So freakin' simple.

542 byte By superiorlobea at 2007-9-30 1:10:12
Hi. I want to take a file string of the form:<tag>anything at all can go in here including thousands of newlines. I want to stop when I see the end tag, though</tag>and I want to replace it with something simple, like a space character. This seems like it would be simple. The ...

Need Help with Code

1647 byte By etow1288a at 2007-9-30 1:10:18
I receive the following error message:ListFiles2.java:15: incompatible typesfound: java.lang.Stringrequired: java.lang.String[]FilePath = in.readLine();^1 error// My code is below:import java.io.*;public class ListFiles2{ public static void main( String [ ] args ) {BufferedReader in = new ...

Need help on code

5225 byte By kill3ra at 2007-9-30 1:10:21
Im have trouble putting this code together. i'm new to java and would really like to learn as much as possible. I have been at this for the last 2 days. i think what is making things really hard is we use this deitel book and the book does everything in swing while or teacher doesnt want us to ...

Need help on code

5234 byte By kill3ra at 2007-9-30 1:10:22
Im have trouble putting this code together. i'm new to java and would really like to learn as much as possible. I have been working on this for the last 2 days. i think what is making things really hard is we use this deitel book and the book does everything in swing while our teacher doesnt ...

new to Jcreator Need help with passing arguments to main method

1748 byte By bannikalia at 2007-9-30 1:10:41
Hi,I am new to Jcreator IDE and I am not able to set main method argumets. I know I can pass arugments to main methold by performing on the following options. I did try both options listed below,But I dont know where I am going wrong, I am still unable to pass arugment and when I print ...

I am an idiot, I know. Scope question

2450 byte By phaseninea at 2007-9-30 1:10:46
Here is my code so you guys can see it...Here is what i'm doing: User enters 4 numbers it steps through each of them (in the while loop) and adds 7 to each individual digit. Thats working ok, whats not working ok is - I need to put the new digits in a string together. I.E. user enters: ...

this java behavior is strange

356 byte By amalcona at 2007-9-30 1:10:54
Please find attached a project I am working on: <a href="amalcon.res.wpi.net/devtool/">devtool</a>. Most of it should work fine but there is a bit of an issue in that the pack() function generates an ArrayOutOfBoundsException, which I don't know what to do about because pack() ...

Searching a vector of objects

771 byte By Niall08a at 2007-9-30 1:10:55
I have created a vector of objects called vertices. Each object contains a name, x value and y value. When adding a new object to the vector, I want to check that another object with the same name does not exist before adding the new object. I have tried unsuccessfully with the following ...

Help w/ reducing fractions code

328 byte By Staractor6a at 2007-9-30 1:10:56
hey, im beginning to teach myself about this great language and I ran into a question.lets say i have to input 4 letters a,b,c,dand then do (a/b) / (c/d) dividing two fractions....how would i go about printing the solution in lowest terms? Does it have to do with something with MODing ...

need help with array losing mind

3228 byte By DSM4Lifea at 2007-9-30 1:11:00
What i am trying to do is read a line of text from an input file on a:\ tokenize the text then store it in an array.Then i want to read the next first token and store that in a array then next token and read them into array.input file is as followwwwwwwwwkkkk9999999iiiiiii7772737that is how the ...

inheritance

1497 byte By propsa at 2007-9-30 1:11:04
iam trying to understand how inheritance work . In case the following sample code works could you help me to create the main method . I just want from one class to get the address and from the other the post code . abstract class abstract1{private String myaddress;public abstract1(String ...

Problem with Adapter Class's method call?

1079 byte By DM777a at 2007-9-30 1:11:23
Hello! I found a piece of code Sun's Java tutorial address is: http://java.sun.com/docs/books/tutorial/java/javaOO/innerclasses.htmlbut need help to understand it. The code is illustrated below:public class Stack {private Vector items;...//code for Stack's methods and constructors not ...

j2sdk installation question

1181 byte By R.stiltskina at 2007-9-30 1:11:54
Hi. I'm new to java. Just installed j2sdk1.4.2 with netbeans on a notebook with a new clean installation of WinXP Pro SP1. The java installation appeared to be completed successfully.Path is set to my java /bin directory.I can compile & run a simple program with no problems. I can run an ...

i think i have a float problem

4639 byte By kill3ra at 2007-9-30 1:12:16
the purpose of this applet is to get MPG per tankful and total miles per gallon. I have it done but what is bothering me is if i input in a decimal i get an error. And the applet does not process. I though this was what float is for. (decimals) i know it probably wouldnt be practical to enter ...

Java buttons/icons

214 byte By psllooa at 2007-9-30 1:12:23
Can some please help me. I saw a link on this site where you can download free buttons/icons with the java look & feel. Now I want id and I just cannot fine it. Does anyone hove the link.Peter Loo

Problems with a method

2515 byte By Young_Javamana at 2007-9-30 1:12:34
When i try to compile this code i am presented with an error that is at the end of the program. Can someone tell me what is wrong because i just cant seem to wrk it out?import java.util.*;import java.awt.*;import java.awt.event.*;class TLights extends Frame{ final int LIGHTNO = 3;Label [] ...

Accessing IBM Mainframe

517 byte By yu_hunga at 2007-9-30 1:12:38
Hi allIn my system it is currently using PComm 5.01 and CPI-C (written in VC) to establish connections with the mainframe.I would like to migrate that to Java and I have no idea how to do that. I have tried the Java CPI-C Ping program that comes with PComm 5.01, however, when I run it failed to ...

calender.getInstance()

229 byte By Young_Javamana at 2007-9-30 1:12:43
Does anyone know how to use the calender.getInstance() method to call on the time in the computer as i am trying to write a digital clock using it but i have no idea how to start it as i have been ill for most of the term?

will someone please check my code....

3321 byte By kill3ra at 2007-9-30 1:13:10
Thank you to whomever decides to help me. I just want my code checked. i tested and ran it with no problems. My assignemnt is as follows:***Write a method titled GCD that accepts two integers (as input parameters to the method), and returns the greatest common divisor of the two integers. ...

setting custom volume please help!

259 byte By porkbomba at 2007-9-30 1:13:33
Hey everyone I am trying to create my own volume jslider bar, I have the gui done but have no idea how to write code for volume and link this up with my jslider bar!! anyone who can post some sample code would be greatly appreciated, cheers in advance.

new in soap and java. I don?t undertand the error

1665 byte By javallea at 2007-9-30 1:13:39
This is my program:import javax.xml.soap.*;import java.util.*;import java.net.URL;public class EnvioSMS {public EnvioSMS() {}public static void main(String[] args) {try{int Argumentos = args.length;// Crear el objeto mensaje de SOAPMessageFactory factory = ...

Jess

185 byte By BabaoRileya at 2007-9-30 1:13:53
I am a novice java programmer and the topic Jess has come to my attention in relation to expert systems and was wondering could anyone direct me to relevant materialthanks

Problem extending JPanel

1576 byte By LittleRedOnea at 2007-9-30 1:13:56
Hi,What is the best format to have a class with a JFrame and a number of JPanels, one of which needs to be painted on using Graphics. class Demo extends JPanel{public JFrame frame;public JPanel panel1;public JPanel panel2;public JPanel panel3;Demo(){// initialise JFrameframe = new JFrame();// ...

involution in java

419 byte By olimantadoa at 2007-9-30 1:14:01
int getal1, getal2, uitkomst;String invoer1 = tekstvak1.getText();String invoer2 = tekstvak2.getText();getal1 = Integer.parseInt(invoer1);getal2 = Integer.parseInt(invoer2);uikomst = int Math.pow(getal1,getal2);uitleg.setText("" + uitkomst);I tried this : uitkomst = int Math.pow(getal1,getal2) ...

showing file duration of a wav file?

141 byte By porkbomba at 2007-9-30 1:14:32
hey does anyone know how to show the file duration and the time remaining of a wav file on a jtextarea? im completely stumped, cheers.

Mathematics

272 byte By alejandrosha at 2007-9-30 1:14:34
Hi,Anyone know how to operate logaritmic expressions in Java.Something like double result = log(x) where I have x.And the other way around, having the result of log(x), achieve the value of x, which is 10^result ..Thanks,Al

Java environment

559 byte By Prog1Mana at 2007-9-30 1:14:36
Hi folks, I am a new Java user and had just downloaded the J2SE 1.3.1_08 and installed on to my laptop and so by doing that it created a directory name "c:\jdk1.3.1_08" and dump all the necessary files and directory under this directory. Well, they I created a directory called "c:\java" and I ...

Unknown Source in stack trace

1102 byte By martin_woolleya at 2007-9-30 1:14:42
Hithis has got to be one of those "frequently asked questions" but....I get "Unknown Source" in stack traces. Why is this and what do I need to do so that the appropriate line number is shown instead? Examples below:java.lang.NullPointerExceptionat ...

converting a for loop too a while loop

370 byte By cyberfienda at 2007-9-30 1:14:53
can any one help me convert a for loop to a while loop; example, how would this for loop be written as a while loop long sum = 0; for (int i = 0 ; i <= 1000; i++) {sum = sum + i; ...

loading a JPEG into a JFrame

148 byte By ug76mxva at 2007-9-30 1:14:59
I am trying to open a Jframe which will have a Jpeg on it, how do i get it to load on the frame.i am new to java, please provide code

Servlets vs EJB's

436 byte By slacks99a at 2007-9-30 1:15:04
Hi,I am new to java and need to (fairly rapidly) build a simple application to enable a database to be updated and a file to be uploaded to the server.I have managed the ftp bit quite easily (using sun.net.ftp).I am of the understanding that I should use servlets or EJB's to do the updates to ...

double click event to source code

7928 byte By 123avaja at 2007-9-30 1:15:19
hi allWhat im trying to do is when someone clicks one of the keywords in the tree browser file that it takes them to the source code window and to that method or variable the clicked. For exaple lets say have 2 windows, on the left side is just a list of methods and variables and ont he right ...

Destroying a JFrame

688 byte By robertcoughlana at 2007-9-30 1:15:22
I am using a JFrame to display a keypad. Once a user has entered an integer value using this keypad, and hits enter, a method of another class is called and this Jframe is closed. The problem I am having occurs when this function is needed once again. The code executes and a new JFrame appears ...

calulating dot product and length

1898 byte By vik_paa at 2007-9-30 1:15:24
I have the following code which allows me to get values from a 2D double array and calculate the dot product and the length:File f = new File ("TheMatrix1.mp7");DataInputStream in = new DataInputStream(new FileInputStream(f));double[][] doubleArray = new double[2][2];for (int row = 0; row < ...

Problem with InputStreamReader

2741 byte By endakellya at 2007-9-30 1:15:41
Hi I am trying to read in a string from the command line, Split it into 4 pieces (denoted at a "-"), convet the first two to ints and leave the second two as strings. And it all works fine, except if I enter the one the srtings as a file locator, then i get blankEg if i enter 1-2-test-test2 my ...

Trouble with "j2ee -verbose"

836 byte By norman_funga at 2007-9-30 1:16:05
I'm having trouble with starting j2ee and cloudscape...I installed "j2eesdk-1_4-dr-windows-eval.exe", then, from command line, I typed:j2ee -verboseError message: "j2ee is not recognized as internal or external command, operable program or batch file."I have checked my CLASSPATH, PATH, ...

How do i make a delay between animating frames?

616 byte By TeaInACupa at 2007-9-30 1:16:12
Hello, does anyone know of a quick bit of code that will enable me to have a delay between animation frames? Basically its a walk sequence, and each time the user presses an arrow key, the frame changes, and the man walks. At the moment though it tends to skip frames when the key is held down, ...

Start applet not initialized

178 byte By programmerdoca at 2007-9-30 1:16:14
Dear friends,After running applet I get a blank applet window with following statement at the bottom.Start applet not initializedAny comments, please.

Help Debug this program

2751 byte By smartnasha at 2007-9-30 1:16:22
Hi,I am rather new to java concepts,but learning.I have written this code.Kindly help me understand the mistake.import java.sql.*;import java.lang.*;import java.io.*;public class UserPresent implements User { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");System.out.println("Driver loaded ...

Displaying a message/alert

342 byte By working_on_ita at 2007-9-30 1:16:29
Hi.I used to be a Visual Basic programmer. (I can here the shouts of disgust)In VB if you wanted to display a message box, you could use the MsgBox object and you would get a GUI message on the screen.How does this work in Java? Do you have to design each message by making new JFrame?Any ...

SMS

114 byte By soirenitneba at 2007-9-30 1:16:34
Hi!!I just want to know if there is a way to make an application to send SMS to phones?Thanks

Problems with SOAP function calls

2145 byte By fattonymaximusa at 2007-9-30 1:16:35
The jar files are added it reads all the imports but it just doesnt read the lines marked by stars and its coming out with errors cannot resolve symbol:method getSOAPHeader() in class javax.xml.soap.SOAPMessage (for the 1st 1)cannot resolve symbol:method getSOAPBody() in class ...