35,618 Topics

Member Avatar for
Member Avatar for ebiz

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.

Member Avatar for Ezzaral
0
159
Member Avatar for cbickle

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 …

Member Avatar for Antenka
0
900
Member Avatar for shubhang

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 …

Member Avatar for Antenka
0
182
Member Avatar for lone_emu

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 …

Member Avatar for Antenka
0
615
Member Avatar for alip15379

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 …

Member Avatar for Antenka
0
179
Member Avatar for shubhang

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 …

Member Avatar for bondo
0
169
Member Avatar for christiangirl

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 …

Member Avatar for christiangirl
0
135
Member Avatar for freaky.pandit

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. …

Member Avatar for AlbertPi
0
126
Member Avatar for java_programmer

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...

Member Avatar for AlbertPi
0
141
Member Avatar for MxDev

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[] …

Member Avatar for AlbertPi
-1
171
Member Avatar for tte

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 …

Member Avatar for AlbertPi
0
142
Member Avatar for AlbertPi

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 …

Member Avatar for AlbertPi
0
227
Member Avatar for das_das

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

Member Avatar for peter_budo
0
100
Member Avatar for gadisandeep

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 …

Member Avatar for Tyrone.Wilson
0
112
Member Avatar for dayotjawak
Member Avatar for jessxe02

Help I want to learn how to connect SQL to my java program? is there any free online tutorial? help my please..

Member Avatar for sierrainfo
0
154
Member Avatar for ShahzadMahmood

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 …

0
50
Member Avatar for christiangirl

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 …

Member Avatar for vee_liang
0
85
Member Avatar for christiangirl

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 …

Member Avatar for masijade
0
82
Member Avatar for Acidburn

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 …

Member Avatar for priyankalakhe
0
148
Member Avatar for orangejuice2005

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 …

Member Avatar for christiangirl
0
147
Member Avatar for vman6ley

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 …

Member Avatar for vman6ley
0
110
Member Avatar for prabhurangan

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 …

Member Avatar for Ezzaral
0
74
Member Avatar for cproud21

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.*; …

Member Avatar for LDeArm
0
155
Member Avatar for detoxx

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 …

Member Avatar for sillyboy
0
267
Member Avatar for 00matt

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 …

Member Avatar for jasimp
0
145
Member Avatar for Anselm

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 …

Member Avatar for Ezzaral
0
189
Member Avatar for peter_budo

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, …

Member Avatar for peter_budo
0
174
Member Avatar for sriram.19801980

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.

Member Avatar for Ezzaral
0
316
Member Avatar for localp

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 …

Member Avatar for anil_forum
0
118

The End.