|
Advertisement
|
Forum posts by Charles Bell:Posted in Java Answers Forum, Jun 16, 2002, 10:57 PM
You must use a java obfuscator.
Posted in Java Answers Forum, Jun 16, 2002, 10:52 PM
Suggest you run the command validate with the text area or the container object which contains the textarea.
Posted in Java Answers Forum, Jun 16, 2002, 10:50 PM
Suggest you set your string s to null in your program when you no longer need it so it will be "suggested" to the java virtual machine for garbage collection.
Posted in Java Answers Forum, Jun 16, 2002, 10:46 PM
I suspect that your vector v has size zero and thus is not giving you anything in your text area.Suggest you add a line or two of debug code to see what is being returned, if anything.Vector v=methodCallwithReturntypeVector();textAreaObject.append("v.size() = " + String.valueOf(v.size());System.out.println("v.size() = " +...
Posted in Java Answers Forum, May 19, 2002, 10:24 AM
PCs vary with the type of audio format supported.Run this program and see if one of these formats is supported: LINEAR, ALAW, ULAW, GSM.There are other formats if you look at the API documentation. Once you have found an audio format that your sound card supports, then you have to specify the rest of the info to create a specific audio format...
Posted in Java Answers Forum, May 18, 2002, 5:51 PM
The following program will print out a lot of info about your audio system:/* AudioSystemExplorer.java* @author: Charles Bell* @version: May 12, 2001*/import javax.sound.sampled.*;public class AudioSystemExplorer{ public static void main(String[] args){ AudioSystemExplorer audiosystemexplorer = new AudioSystemExplorer();...
Posted in Java Answers Forum, May 18, 2002, 5:49 PM
On my machine, I am not getting "no capture found" messages.If you are trying to record something from your microphone, you might try this little demo code:/* RecordAndPlay.java* @author: jbell* @version: Mar 28, 2001*/import java.awt.*;import java.awt.event.*;import java.io.*;import javax.swing.*;import javax.sound.sampled.*;public class...
Posted in Java Answers Forum, May 18, 2002, 5:34 PM
You applet tag needs the codebase attribute set.codebase="." sets the code base to the current working directory. The java virtual machine will look for the class file in the same directory or folder as the .html web page is in. If the applet class file is not in the same directory as the html web page file, then set it appropriately with the...
Posted in Java Answers Forum, May 11, 2002, 1:46 PM
/* RecordAndPlay.java* @author: jbell* @version: Mar 28, 2001*/import java.awt.*;import java.awt.event.*;import java.io.*;import javax.swing.*;import javax.sound.sampled.*;public class RecordAndPlay implements ActionListener, Runnable { Thread thread; AudioInputStream ais; boolean recordstatus = false; boolean playstatus = false; float...
Posted in Java Answers Forum, May 10, 2002, 10:13 PM
/** Returns the string value of the user's IP Address. */ public String getMyIPAddress(){ String myIpAddress = ""; try{ myIpAddress = InetAddress.getLocalHost().getHostAddress(); }catch(UnknownHostException unhe){ System.err.println("Exception: " + unhe.getMessage()); }catch(Exception e){ System.err.println("Exception: " + e.getMessage()); }...
Posted in Java Answers Forum, May 10, 2002, 10:10 PM
Check out Excelsior JET at:http://www.excelsior-usa.com/jet.htmlIt will compile java classes into windows executables.
Posted in Java Answers Forum, May 10, 2002, 10:08 PM
An open source Java Script Engine called Rhino is available at http://www.mozila.org/rhinoMacromedia's shockwave player is written almost all in java. Checkout http://www.macromedia.comCheck out Apple's QuickTime support for java at:http://www.apple.com/quicktime/qtjava/index.html
Posted in Java Answers Forum, May 5, 2002, 7:06 PM
The PUT feature of most HTTP web servers is disabled.Otherwise it would child's play to wreck a web site.Suggest you use an FTP program to upload your files.There are java programs already written for adding ftp features to your programs if you search around such as at: http://www.jars.com/or jRoundup grabit section...
Posted in Java Answers Forum, May 5, 2002, 6:50 PM
Check out your applet tag in the web page you are referencing called "chat.html"It should look something like this:where code base points to where the code class is located. If its in the same folder as the chat.html file, then use the "." which stands for the current directory.If its in another folder, then create a path string which points to...
|