35,618 Topics
![]() | |
I currently have a table in oracle which I have created, but need to take a text file (which I have used a fileChooser for) and then use this file to update the records in the oracle database. How would I go about this? Thanks. | |
Hey everyone im working on a class in java that does several things. it is supposed to take a sky condition either sunny snowy cloudy or rainy and a temp between -50 and 150 f. the default sky is sunny and temp is 70. it needs a method that converts … | |
Hi, I am new at java. I have made the search class of an address book program with the functions of add, modify and delete. Please have a look into the code. Please also explain the function of [code] e.printstacktrace();[/code] [code] import java.io.*; import java.util.*; class search { private String … | |
I got most of the basics but i need help on getting all of the requirements right and EVERYTHING I NEED TO DO. Is there a way to replace certain chars without actually using str.replace();, especially punctuation? This is the assignment 1. You will create a class that will perform … | |
Hi everybody I'm new to this forum, and I hope I get to know you all for as long as I'm gonna be coming here. I need help with my program. basically wat i need to do is to create a program in which it check the spelling of the … | |
I have made this delete class of my address book program. It gives an error when I use the renameTo() function. Please look into my program. [code] import java.io.*; import java.util.*; class del { private String stru,strf; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); public void calc()throws IOException { System.out.println("enter record to be … | |
I have this program all working, except in how the text looks in the file. The text is supposed to be all on different lines, but its all on the same. Here's the code: [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /* * class LogOrder * Allows user … | |
hey guys... i need to integrate a fingerprint sacnner into a project wchich i am developing right now. but i do not know any java api which support hardware integration...so i m in a total mess... can anyone tell me a way to integrate the fingerprint scanner in my application. … | |
Hi all, I am a new user of struts. I have a requirement where I need more than one ActionForm against a single DispatchAction, but I am not able to handle this situation. Is it possible to have more than one ActionForm against a single DispatchAction? Thanks in advance... | |
hi guys, i'm trying to connect java application to SQL server 2005 developer edition, i used the following code which comes with the microsoft jdbc-odbc driver 1.2, after that i modify the class path to load sqljdbc_auth.dll file. import java.sql.*; import com.microsoft.sqlserver.jdbc.*; public class connectDS { public static void main(String[] … | |
Hi. I've built a HttpServlet that catch a request and parse a web page using InputStream, InputStreamReader and PrintWriter changing some content along the way and output it as a response. Everything works like a charm (parsing html, css, gif, jpg, aso) except for png images. Since png's are binary … | |
The following method "sound" works on my PC and it sounds a beep. I am using java 1.5 and Jdeveopler 10.1.3.4 on Windows XP/SP2. import javax.sound.sampled.*; public void handleBeep(ReturnEvent returnEvent) { try { sound(2000,150); } catch (LineUnavailableException lue) { System.out.println(lue); } } public static void sound(int hz,int msecs) throws LineUnavailableException … | |
hello I have attended SCJP 5.0 and SCJP 6.0 Mock test at , it good one at [link removed] 10 sets of mock test i have attended... I want to attend more mock test before actual exam.. can anybody please tell me where can i attend ? thanks das | |
Hi,I am reading this .CSV file and new to this.I have information in tabular form where i have names in 1row and 1column and in between cells i have numbers indicating links of those names by that purticular number. I want to retrevie those names who are having that purticular … | |
any suggestion.......... simple java coding to settle final project in | |
Help I want to learn how to connect SQL to my java program? is there any free online tutorial? help my please.. | |
Regards for All, I am new in JSP and giving a web solution, I am using XML document to store data. I have a script which retrieves stored data from XML which is in JSP. Now I want to append more data at any level in XML document and want … | |
I have to write two programs, one writes to file based on what the user selects. The other reads the file, and outputs what the user selects. And I'm really not sue if I'm doing this right. Here is what I have for writting to the file: [code]import javax.swing.*; import … | |
I have to make a program where I take a file that contains users order information(the file is from another program I had to make), and then tests it and outputs how many of what it orders. I cant seem to get it to work, its running but then at … | |
Hey guys, I've found this article showing how to manipulate itunes using java and com objects. However I dont really understand how it works, and can't seem to tell java to send a play / pause request. The event listeners works. [url]http://www.workingwith.me.uk/articles/java/itunes-com-with-java-and-swing[/url] Could someone try and expand on this? Or … | |
Hello, I am writing a program that will read in a pair of inputs, (P, S), summarizing the results of a code inspection. One input is the integer problem number, P, and the other is the severity level, S, of that problem. Since a typical code inspection will never have … | |
Hello, First I'll like to say that this a fantastic site for newbies and I'm sure for seasoned programmers as well. I have gained a lot of insight by just reading the threads and for this I thank Daniweb. Thank you very much in advance for your expert help. My … | |
Dear Members, I found a thread named 'Execute an sql script in jdbc' it was very much useful to me. However i have my routines(ie. stored procedures and functions) also with the backup.sql file. This is the link which i looked for: [url]http://www.daniweb.com/forums/thread153923.html[/url] But i have to execute my script … | |
I have a GUI app which in which I need to pass a value from an array to a List... here is what I have... The problem occurs when I try to pass the array element to the ActionListener... im not sure exactly how to do it... [ICODE] import java.awt.*; … | |
Can anyone help me please? i need to create a program in which you enter a distance and the program will tell you how long it will take to get there in hours minutes and seconds. My trouble is that they all display independently and not seperately ... for example … | |
Hi, I am new to java and would really appreciate it if someone could look at the code I have attached. This is part of a java lab assignment that I have got to do for university. For reference, I have also uploaded the lab file. I am trying to … | |
Is there an API I can use to program a flow diagram? My need to develop a table flow diagram from database data collected in a excel spread sheet. I need to parse the table joins and generate a flow diagram. The program is an attempt to keep our diagrams … | |
In the JFrame I have two components JMenuBar and JPanel. A selection in one of the options in menu bar change the content of panel as [code=Java]JMenuItem jmiAddEmployee = new JMenuItem("Add Employee"); jmiAddEmployee.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { mainPanel.removeAll(); mainPanel.add(addEP); validate(); } });[/code] This will replace the content, … | |
Can some someone help me with a code to create a new Excel workbook and send data to the workbook using[B] java[/B].Please help me. | |
I want to know how to call the above function ??? [code] import java.awt.*; import java.applet.Applet; import java.awt.event.*; public class GridDrawingApplet extends Applet { public void paint (Graphics g) { // Draw the vertical lines: g.drawLine (0,0, 0,240); } } public static void main(String []args) { // now i want … |
The End.