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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ?
how do i write the code to determine which number is bigger between the two?
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 ...
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 ...
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 ...
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 ...
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 ...
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: ...
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() ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 [] ...
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 ...
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?
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. ...
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.
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 = ...
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
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();// ...
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) ...
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.
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
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 ...
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 ...
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; ...
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
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 ...
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 ...
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 ...
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 < ...
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 ...
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, ...
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, ...
Dear friends,After running applet I get a blank applet window with following statement at the bottom.Start applet not initializedAny comments, please.
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 ...
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 ...
Hi!!I just want to know if there is a way to make an application to send SMS to phones?Thanks
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 ...