Forum: Java 1 Hour Ago |
| Replies: 3 Views: 32 http://java.sun.com/docs/books/tutorial/uiswing/components/button.html |
Forum: Java 5 Hours Ago |
| Replies: 1 Views: 46 Add a System.out.println(System.getProperty("user.dir")) in there.
Otherwise use the search function for the OS.
But, the best way is to provide the full path to the file from the beginning. ... |
Forum: Java 5 Hours Ago |
| Replies: 8 Views: 179 Which has already been covered. Did you read the thread or just knee jerk reply without bothering to find out what has gone before? |
Forum: Java 14 Hours Ago |
| Replies: 4 Views: 81 The MySQL documentation shows you which class, at the very beginning of the page I linked to, and the tutorials (and the MySQL docs) show you how to use it. Read those.
Edit: Besides, why would... |
Forum: Java 18 Hours Ago |
| Replies: 4 Views: 81 You don't load the jar, you load the Driver class and include the jar on the classpath. See the Tutorial (http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html) and the MySQL manual... |
Forum: Shell Scripting 18 Hours Ago |
| Replies: 2 Views: 61 Configure the ssh to use private keys. |
Forum: Java 1 Day Ago |
| Replies: 1 Views: 91 So use a JTextArea, then, instead of using System.out.print or println, you use the JTextAreas append. |
Forum: Java 1 Day Ago |
| Replies: 4 Views: 135 I have no idea what you are talking about.
Maybe you should provide a bit of a sample of the data you start with and then a detailed explanation of what you are doing with it (showing the... |
Forum: Java 1 Day Ago |
| Replies: 8 Views: 179 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: Java 2 Days Ago |
| Replies: 8 Views: 179 No it doesn't.
Does the real class maybe have a constructor?
And does that constructor maybe also call new on itself?
If so, what do think will happen if every call to new results in another to... |
Forum: Java 2 Days Ago |
| Replies: 6 Views: 171 Ahh, nevermind, I must have looked at a join date or something. Not, I repeat, not a zombie thread. |
Forum: Java 2 Days Ago |
| Replies: 6 Views: 171 Considering that you mentioned "email2.php", I assume you are running this from a hosted server? Well, does the "jar" run from the server? You say the "jar" worked, do you mean locally, or from... |
Forum: Java 5 Days Ago |
| Replies: 4 Views: 135 Strings can, of course be values in a hastable, but what does that have to do with the rest of the question?
What do you mean by "method generated Strings" and "plug them into another method"?
... |
Forum: Java 5 Days Ago |
| Replies: 4 Views: 135 Strings can, of course be values in a hastable, but what does that have to do with the rest of the question?
What do you mean by "method generated Strings" and "plug them into another method"?
... |
Forum: Java 6 Days Ago |
| Replies: 1 Views: 109 might help to know what this getOccurredDate method looks like, or what Class it's from if it's not yours. |
Forum: Java 6 Days Ago |
| Replies: 10 Views: 142 trim returns a String (as the API docs state), so where are you storing that String? Strings are immutable (which you should already know) which means you cannot change their contents. You can only... |
Forum: Java 6 Days Ago |
| Replies: 10 Views: 142 Between reading the String and adding it to set, of course. Do you need someone to hold your hand when using the bathroom? |
Forum: Java 6 Days Ago |
| Replies: 10 Views: 142 Uhm, no. He's using Strings and they are already comparable. |
Forum: Java 6 Days Ago |
| Replies: 10 Views: 142 to be found in the API docs. |
Forum: Java 6 Days Ago |
| Replies: 10 Views: 142 Try using trim on the Strings before you add them to the sets. |
Forum: Java 6 Days Ago |
| Replies: 1 Views: 96 toBinaryString only produces as many bits as is necessary to show the value. With negative numbers this should always be the complete amount as the leftmost digit is the "negative" indicator, but... |
Forum: Java 7 Days Ago |
| Replies: 2 Views: 128 Okay. What do you have so far? |
Forum: Java 7 Days Ago |
| Replies: 1 Views: 127 A bare number that starts with zero is an octal number. And octal numbers cannot include either an 8 or a 9. Remove those zeros. |
Forum: Java 7 Days Ago |
| Replies: 2 Views: 125 See your other thread on this.
http://www.daniweb.com/forums/thread234032.html |
Forum: Java 7 Days Ago |
| Replies: 4 Views: 125 Two duplicate threads:
http://www.daniweb.com/forums/thread234039.html
http://www.daniweb.com/forums/thread234032.html |
Forum: Java 7 Days Ago |
| Replies: 1 Views: 112 Well, I know how I would do it. The real question is how you think it should be done. We are not a homework service. Post your attempt at it here and we will help you correct it. We are not,... |
Forum: JSP 7 Days Ago |
| Replies: 5 Views: 2,185 |
Forum: JSP 7 Days Ago |
| Replies: 35 Views: 20,997 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: Java 7 Days Ago |
| Replies: 4 Views: 176 As in JMenu?
http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html |
Forum: Java 8 Days Ago |
| Replies: 4 Views: 134 Yes, CardLayout is a good option, but doing other's work for them is not. Simply suggest CardLayout and link to the tutorial for it, or give a "generic" example of it. |
Forum: Java 8 Days Ago |
| Replies: 4 Views: 134 call validate and then repaint (on the entire JApplet, i.e. just like you're calling getContentPane), rather than that content.paint call. |
Forum: Java 8 Days Ago |
| Replies: 6 Views: 180 Okay, now the question is whether you really want to replace the current list with the list that method returns, or if you want to add the items (not already included in the list) returned from that... |
Forum: Perl 9 Days Ago |
| Replies: 10 Views: 377 To help them learn. Definately not to do their homework for them.
Get them to attempt it, and post their code. Then, give them pointers on what they then need to do to fix that code, and get... |
Forum: Perl 9 Days Ago |
| Replies: 10 Views: 377 Okay? So why are you attempting to do other's homework for them? |
Forum: Java 9 Days Ago |
| Replies: 6 Views: 180 By adding the xlint option shown in the warning to the javac command (how you do this with any IDE you might be using depends on the IDE, read its manual). In any case, as I said, that depended on... |
Forum: Java 9 Days Ago |
| Replies: 2 Views: 132 If you "need codes", then you'd beter write some "codes", as we are not going to give them to you.
I for one would not appreciate, one day, ending up being a coworker of yours and continuing to do... |
Forum: Java 9 Days Ago |
| Replies: 2 Views: 132 If you "need codes", then you'd beter write some "codes", as we are not going to give them to you.
I for one would not appreciate, one day, ending up being a coworker of yours and continuing to do... |
Forum: Java 9 Days Ago |
| Replies: 6 Views: 180 It's because you're not using generics. Also, if you look at the compiler message it is a warning, and, in this case, I believe you could ignore it. However, since you are doing all your work with... |
Forum: Perl 9 Days Ago |
| Replies: 10 Views: 377 Okay? So why are you using "$a[...]" when your array is @data1? |
Forum: Java 9 Days Ago |
| Replies: 3 Views: 156 Does it have a "package" statement? Probably not. You need to do more than simply copy the "class" file around. You have to actually declare the package in the source file and compile it as such. |