35,618 Topics
![]() | |
This is my function. see below: public void SoundTest() { try { AudioInputStream audioInputStream; File file = new File("C:\\Temp\\online.wav"); audioInputStream = AudioSystem.getAudioInputStream(file); Clip line; line = (Clip) AudioSystem.getLine(new DataLine.Info(Clip.class, audioInputStream.getFormat())); line.open(audioInputStream); line.start(); line.drain(); audioInputStream.close(); } catch (Exception e) {e.printStackTrace();} Toolkit.getDefaultToolkit().beep(); } I got this error when I ran it: ` … | |
I was messing around trying to figure this out and came up with this. This works but I'm looking for a more elegant recursive solution. Can anyone think of one? I couldn't find anything with google. Oh and sorry for the stupid variable names. [code=java] public class arraybackwards { public … | |
can any one tell me that how to get the names of all the computers connected in a workgroup using java. how to get the ip address of the computers connected in a LAN | |
i am an absolute beginner in java . i want to generate a javadoc , i am using JCreator, so can your'll give me step by step instructions on how to create it... i googled but couldn't find a better one... and dont forget that i am an absolute beginner … | |
Hi i want to implement one servlet where first i want add a user to the database and later when he logged again i need to check that whether he is already existed or not?if he is not existed i need to add those details to the database... can any … | |
hi all I am new to java,i want to create exe file for my jarfiles.I want the same for web based and stand alone application .can any body please explain the above | |
Hello, I am cooking up an application that when I first thought of figured would not be difficult. Basically, what I am thinking of is an application that will track the growth of several of my mothers orchids (I know it is kinda of weird, but this is something that … | |
i wud like to knw if any1 has implemented sliding window protocol in java (UDP). | |
Hey there, this is my first post here and I'm in the need of some real help. I've written a basic password verifier, which checks to see if what you type in is the same as the default stored password, but i continually get a compile error. [CODE]import java.util.Scanner; public … | |
ASSIGNMENT: In section 6.1 of the text, the authors explain how to compute the distance between two colors. They write, The Pixel class has an object method colorDistance(Color color) which returns the distance between the color in the current Pixel object and the passed color. Write a method which takes … | |
hi guys, is it possible to distribute a mysql database and java application together without need the server to run the database from, is there's a way around to make this happen?? Thanks in advance | |
How to design a print reciept from jsp file. or generated a pdf file any idea to start ? | |
hello forum members. i want to find the code behind the builtin length() method of the strings. actually i want to find the length of the string wihtout using the builtin length method of the string in java. thx, | |
Hai, I a have JSP page containing a registration form.The registration form contains a text box and a drop down list box with 1-7 option values. I have entered data into the text box and selected the option value in the drop down list box . After the clicking on … | |
hey guys!!! okay!!! i have a problems that this program is to build to choose a file and the copy it exactly to a new file of my choice but the only is that everytime i do that it happens to make a mistake it copies the file into the … | |
I have a lab to do a simple chat program that has to 1. identify users 2. list online users (means to determine who's logged out and who has closed the page but hasn't logged out) i'm identifying users by session. I'm having problem with determining a user who hasn't … | |
I am new at and using Struts. I'm not sure how to do the following: I am loading an Arraylist of TitleNames. Each TitleName is related to a List of pictures (MyList). MyList is a class that I created that contains all the fields needed to describe the picture. In … | |
I'm working on a problem where I need to use a one-dimensional array to write an application that inputs five numbers, each between 10 and 100, inclusive. As each number is read, it displays it only if it is not a duplicate of a number already read. The program should … | |
I wrote this program that reads data from a txt file named books,and then arranges the data by name and price. that part works fine ,my problem is that I want to sum up the total price of the books and display it. I've tried a couple of ways to … | |
please help me in concept of smtp and pop3 because new to this concept | |
Hello everyone, beforehand, sorry for my english... I have to do client - server application. They must interact, using classes URL, URLConnection. I understand, how to send data to server. But I can not realize server work. The common algorithm of server is: 1. Start. 2. Wait for connection. 3. … | |
I have the following listing application that allows the user to make selections to build a skateboard. How can I add the values to the arrays which are declared? I do not understand how each value will be displayed when a particular option is selected. Also... I want to add … | |
I am getting the following error... init: deps-jar: compile-single: run-single: Exception in thread "main" java.lang.IllegalArgumentException: adding a window to a container at java.awt.Container.addImpl(Container.java:1010) at java.awt.Container.add(Container.java:928) at javax.swing.JFrame.addImpl(JFrame.java:480) at java.awt.Container.add(Container.java:899) at BoardCreator.<init>(BoardCreator.java:40) at Board.main(Board.java:14) Java Result: 1 BUILD SUCCESSFUL (total time: 3 seconds) Here is my code which is a box … | |
I have a file that is tab separated. i read it in as an arraylist<string> how can i print out only the second section of the file? | |
How can I set the classpath to a folder on my disk for a given JBoss application from within Eclipse? Thanks. | |
I am to create a menu application for a cell phone company. The user is to select their package, phone, and any additional add ons they would like, and it is to disply the prices. This is by far the most advanced programming I have done to this point and … | |
Hello, This is my first post here. I appreciate any help you guys can give me. I'm having some issues with the technologies listed in the title. I've narrowed this down to a Apache/Tomcat configuration issue (I'm leaning towards tomcat issue). First of all, my setup: Apache 2.2.10 -- The … | |
HI Folks , Sorry if it is the Repeated Question.... --->[B][COLOR="Green"] I want to Create An Object for a Class With user specified name.?[/COLOR][/B] Example : Class Name : Simple User Specified Name for a Object : SunServer i want like this Simple [B]"userSpecified Name"[/B] = new Simple(); how to … | |
I am about to start my thesis this January 2008. I pick java as my PL but I don't know any database right now.. is there any database than i could learn easily and also fit to java? please help me.. | |
I'm having problems with this. The thing is that when I send an MMS with J2ME to another devices with JSR 205 (two tested: SonyEriccson w610i and Nokia 5300), a receiving icon flashes, but the message is not in the inbox folder. I think this happens because of the application … |
The End.