Forum: Java 6 Days Ago |
| Replies: 12 Views: 542 Did you search for exactly "SQLite JDBC Driver". If so, the very first link works, but there are many others, and the third link (the one from sqlite.org) has a list of possible drivers. Take your... |
Forum: Java 6 Days Ago |
| Replies: 5 Views: 217 |
Forum: Java 12 Days Ago |
| Replies: 11 Views: 430 after j.add add j.validate() and j.repaint(), and then try again. |
Forum: Java 12 Days Ago |
| Replies: 1 Views: 233 Because the only print statement you have there refers to one specific element (and actually it doesn't refere to any of them since index is undefined there).
You, of course, need to create... |
Forum: Java 13 Days Ago |
| Replies: 6 Views: 243 As he has been told here ( http://www.java-forums.org/new-java/23657-command-line-arguments-help.html ) already. |
Forum: Java 19 Days Ago |
| Replies: 8 Views: 417 The first index of an array is 0, which means the last index of an array is one less than its length. So, knowing that, take a look at the condition in your for loop and see if can find and fix the... |
Forum: Java 20 Days Ago |
| Replies: 6 Views: 353 Do you want to "set the element to 0" or do you want to remove it. The sample code will actually remove it. If all you want to do is set it to 0, then there is no reason to "record" the index when... |
Forum: Java 22 Days Ago |
| Replies: 7 Views: 446 Implement Runnable unless you have some specific reason for extending Thread. |
Forum: Java 22 Days Ago |
| Replies: 16 Views: 702 Manual. Gives full control with no "bolierplate", repetitive, rigid code.
But that's not what you're looking for is it? I dislike all "Gui builders", as they all produce rigid, reptitive code... |
Forum: Shell Scripting 23 Days Ago |
| Replies: 12 Views: 1,011 How is javascript going to help with this when there is no server and no html, or anything else that has anything at all to do with JavaScript? Or is this really a download after all? Even though... |
Forum: JSP 25 Days Ago |
| Replies: 1 Views: 367 Well, of course you're "not getting the exact reason for this" when you ignore all errors. Add a printStackTrace to each of those catch blocks. |
Forum: Java 27 Days Ago |
| Replies: 20 Views: 594 It might help to know what these nebulous "errors" are. complete error message with stack traces (where applicable), please. |
Forum: Java 27 Days Ago |
| Replies: 8 Views: 294 Because what is automatically "converted" is the result of the operation, not the individual pieces of the operation. Therefore, the operation consists of two Integers 2/3, therefore Integer math is... |
Forum: Java 27 Days Ago |
| Replies: 8 Views: 294 Because 2 and 3 are Integers, so pure Integer math is performed.
Use a literal double (i.e. 2.0 instead of 2) or cast at least one of them to a double
double a = (double) 2 / 3;
// or
double b... |
Forum: Java 30 Days Ago |
| Replies: 2 Views: 198 Or Andy Khan's jxl (Don't believe this works as of Office 2007, however). As last resort you can use the JDBC-ODBC Bridge. |
Forum: Java Nov 17th, 2009 |
| Replies: 9 Views: 340 |
Forum: Java Nov 12th, 2009 |
| Replies: 5 Views: 277 Good for you. A lot of people react negatively to that sort of advice, so, truthfully, way to go. |
Forum: Java Nov 9th, 2009 |
| Replies: 26 Views: 803 Huh? This is purely a compilation issue. What does applet, or not applet, have anything to do with it? |
Forum: Shell Scripting Nov 9th, 2009 |
| Replies: 2 Views: 713 $file_name, not file_name
ditto for the other variables
use "sed -e" not just "sed"
and change $file.new to ${file}.new just to be safe
Edit: So many problems, so little text. ;-) |
Forum: Java Nov 5th, 2009 |
| Replies: 6 Views: 232 BufferedReader, readLine, a counter, and String's split. |
Forum: Java Nov 2nd, 2009 |
| Replies: 9 Views: 416 Because without the static, that Test t = new Test(); is an instance variable, that is instantiated with every call to new. So, you call new Test() in main, which triggers another new Test, which... |
Forum: JSP Oct 28th, 2009 |
| Replies: 5 Views: 2,383 |
Forum: JSP Oct 27th, 2009 |
| Replies: 35 Views: 22,261 Yes there is. You have obviously never worked on anything that lasted more than a few days, or ever needed to be expanded or improved or fixed. Scriptlets are a maintenance nightmare. At the very... |
Forum: JSP Oct 20th, 2009 |
| Replies: 3 Views: 387 |
Forum: Java Oct 19th, 2009 |
| Replies: 9 Views: 5,304 By starting your own thread in the JavaScript forum, maybe? |
Forum: Java Oct 19th, 2009 |
| Replies: 9 Views: 539 Take a close look at my previous post.
The first code block is your code, the second code block is modifications to that code. |
Forum: Java Oct 19th, 2009 |
| Replies: 7 Views: 309 Aargh multi-post
http://www.daniweb.com/forums/thread231257.html |
Forum: Java Oct 17th, 2009 |
| Replies: 1 Views: 338 You are calling the ethod without any arguments, but the method is designed to take an int and a double, so give it an int and a double. |
Forum: Java Oct 17th, 2009 |
| Replies: 6 Views: 371 Write a method that reads the user input (I am assuming your getting input at various stages) and checks whether it is "quit" or not and otherwise returns the input as a String. Then, every place... |
Forum: Java Oct 16th, 2009 |
| Replies: 8 Views: 431 That information seems to encapsulate a session, so Google around a bit and find out how to maintain a session using HttpURLConnection. |
Forum: Java Oct 16th, 2009 |
| Replies: 14 Views: 1,286 Change this
to this
public detectUSB() {
initComponents();
}
and change this |
Forum: Java Oct 16th, 2009 |
| Replies: 11 Views: 403 MS Access is file based (i.e. no remote connections, local file access needed) and Applets do not have access to the local file system. A complete redesign is in order. |
Forum: Java Oct 16th, 2009 |
| Replies: 3 Views: 231 Each package has it's own directory (in the normal state of affairs, there are other ways of doing it, but we won't get into those).
I.E. Hypothetical, your source code is under
/my/source
and... |
Forum: Java Oct 15th, 2009 |
| Replies: 2 Views: 274 cmd /c <command>
See http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
And read it completely and thoroughly, although I can't imagine why you would really want to do all this. |
Forum: Java Oct 7th, 2009 |
| Replies: 4 Views: 326 On your profile page is a new "helpfulness percentage rating". These ups and down go toward that (the reputation still exists alongside this though, and these don't seem to affect that). |
Forum: Java Oct 6th, 2009 |
| Replies: 4 Views: 326 package thisIs.a.valid.packageAnd;
public interface MyInterface {
} |
Forum: Java Oct 6th, 2009 |
| Replies: 5 Views: 327 Correct, and, as I said in your other thread, it is because the image file (as referenced there) doesn't exist. Read the API docs for the getResource method carefully and completely. |
Forum: Java Oct 3rd, 2009 |
| Replies: 4 Views: 360 |
Forum: Java Oct 3rd, 2009 |
| Replies: 7 Views: 288 |
Forum: Java Oct 2nd, 2009 |
| Replies: 4 Views: 1,492 That is what I said, that super() is added by the compiler, if you don't add a super call yourself. I simply illustrated what the code effectively was. In fact, if your classes looked like this
... |