If you installed java using an rpm, you will need to uninstall the old version of java before installing the new version. I can't remember the exact option that you need to pass rpm to uninstall, but I am sure that you could find it on-line or in the man pages for rpm.
-gc "I don't look...
The sring you are passing to the parseDouble method is not a valid double number. I would print that string out before you try to turn it into a number. If it looks ok, try adding the actual decimal point. I'm not sure whether or not it is required when parsing the string.
-gc "I don't...
Take a look at this thread: Thread269-276852 There sre some links listed that will provide you with apps that will turn your java program into an exe.
-gc "I don't look busy because I did it right the first time."
The technologies I would be looking at if I were you would be jsp/servlets, JDBC, rmi or EJB, and a backend database (I would use mySql or mSql for simplicity). Java would work very well for this solution. In fact I wrote an application just like it when I was in school with servlets, rmi...
You can definitely make the text on a JLabel look like a hyperlink because JLabel's support HTML. I would then add a MouseListener to the JLabel and then catch the mouse click and launch the a browser using the Runtime.exec() method. There maybe an easier way to launch the browser, but this...
You don't need the import statement if you don't have the two classes in packages. Try removing the import Box; statement and it should work fine.
-gc "I don't look busy because I did it right the first time."
Did you try putting your JComboBox into a JApplet instead of an Applet. Once again, SWING components and older components from before SWING sometimes do not play very nice together.
-gc "I don't look busy because I did it right the first time."
And they are using Applet in conjunction with SWING components? Could you point me to the url where that example exists?
-gc "I don't look busy because I did it right the first time."
You can get the session by using the getSession method on the request. You then can put an object into the session by using either the putValue or setAttribute method on an HttpSession depending on which version of the servlet API you are using.
-gc "I don't look busy because I did it...
Well, a long shot is that you are mixing components. Applet and Swing might not play well together. Try using JApplet instead.
-gc "I don't look busy because I did it right the first time."
It is important to import the packages that you intend to use at the top of your code. The package you need to import is java.io. Add this line to the top of your code:
import java.io.*;
-gc "I don't look busy because I did it right the first time."
Windows XP has an option in the Control Panel to let you set environment variables. You should be setting your environment variables there, not in autoexec.bat. As far as your jars go, you should probably put those in a seperate spot from the jdk, and then just point the CLASSPATH to them...
Jlabel's support HTML. Try doing this instead:
String text="<HTML>";
while(rs.next()){
text+="Name: "+rs.getString("name")+"Date: "+rs.getString("date")+"<BR>";
}
text = text + "</HTML>";
//JLabel is called label...
First off the user does not need the JDK, he would need the JRE. Sun does not allow you to freely re-distribute the JDK, but does allow you to re-distribute the JRE. As far as your problem with people that may decompile your code, that can be done regardless of whether your application is an...
That does not work because firstChar and lastChar are not Strings, they're chars. If you need to use that method try your conditional statement like this:
if( ( "" + lastChar ).equalsIgnoreCase( ( "" + firstChar ) ) )
-gc "I don't look busy because I did it right the...
An applet would be good if you plan to use the application over the web, where as a regular ole desktop app, would be alright to use if that is not the case.
-gc "I don't look busy because I did it right the first time."
There are two things that you can do.
1. You can make the method searchDir a static method.
2. You must instaniate a FileList object in your main method and use the searchDir method via that object. So that would mean your code would look something like this:
public static void main(String...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.