Forum: Java Aug 18th, 2009 |
| Replies: 5 Views: 824 yep, i'd say the code snippets would be the place to put them. It's probably a good idea to give some a good description too. If you are feeling particularly motivated you could make it into a... |
Forum: Java Jul 31st, 2009 |
| Replies: 6 Views: 331 it looks like it is complaining because the getSource is getting a javax.swing.JMenuItem, yet you are trying to use it as a JButton instead. |
Forum: Java Jul 31st, 2009 |
| Replies: 10 Views: 349 um.... why?
don't do the homework of others. |
Forum: Java Jul 30th, 2009 |
| Replies: 10 Views: 349 it doesn't look like your code is written to do too much...
it runs fine, but fine depends on what you want it to do. if you are referring to the alphabetical ordering of characters, well it isn't... |
Forum: Java Jul 30th, 2009 |
| Replies: 10 Views: 349 what exactly is the problem? it is a little unclear to me... |
Forum: Java Jul 23rd, 2009 |
| Replies: 2 Views: 222 the code you currently have is trying to construct a test object, but test is simply a method you call. therefore, you can simply say x = test();, furthermore when you are printing the result, is it... |
Forum: Java Jul 22nd, 2009 |
| Replies: 3 Views: 300 if you think this is so, you should code yourself, because these tools need to accomodate many variations and so the code become "horrible". |
Forum: Java Jul 21st, 2009 |
| Replies: 5 Views: 268 1) you need to design some kind of structure that will be easy for your program to understand. e.g. how will a tree look like in a text file? this is a very open-ended question, and the same goes for... |
Forum: Java Jul 20th, 2009 |
| Replies: 5 Views: 268 the easiest / quickest option would be using some file io. for a more flexible / robust option it would be using a database. |
Forum: Java Jul 17th, 2009 |
| Replies: 3 Views: 219 do you mean JavaScript?
if so: navigator.userAgent |
Forum: Java Jul 17th, 2009 |
| Replies: 10 Views: 658 4. stop hi-jacking threads
5. don't post complete code (at least initially) |
Forum: Java Jul 17th, 2009 |
| Replies: 10 Views: 658 oliver, just stop posting. |
Forum: Java Jul 9th, 2009 |
| Replies: 63 Views: 133,097 so if you run "java [some_package]/[class_name]" it runs successfully?
I doubt it
what do you mean by "work with class files"? |
Forum: Java Jul 9th, 2009 |
| Replies: 4 Views: 620 i don't really understand why you have so many environments, but i guess that shouldn't be relevant (as long as port numbers are unique).
when you say you try: locolhost:8084/HelloWorld/ is this... |
Forum: Java Jul 9th, 2009 |
| Replies: 1 Views: 821 why are you casting everything to a string? for starters .subString will in fact return a string, and subString doesn't take parameters of (String, String). |
Forum: Java Jul 9th, 2009 |
| Replies: 4 Views: 620 there are various things which may cause this. I suspect the "page not found" and "resource not found" are the same error, just written differently.
i assume you have the application deployed... |
Forum: Java Jul 9th, 2009 |
| Replies: 63 Views: 133,097 at runtime you need to specify the third party apis in your classpath, have you done that?
and why did you bump such an ancient thread? |
Forum: Java Jul 1st, 2009 |
| Replies: 10 Views: 486 lol, you are not trying to convince me, you need to convince google/gmail. I don't know how gmail decided spam / non-spam, and as bestjew said, this may not even be the case.
e.g. if you send a... |
Forum: Java Jun 30th, 2009 |
| Replies: 10 Views: 486 you need to make sure it is clear you are writing a mail client and not a "bot" which are mainly used for spam. |
Forum: Java Jun 30th, 2009 |
| Replies: 10 Views: 486 when bestjew refers to a script, i believe he is referring to some "non-human" mechanism, so your program is in fact a script. |
Forum: Java Jun 26th, 2009 |
| Replies: 4 Views: 389 ok, first of all you need to post that in code tags so it doesn't break my eyes trying to read.
from what i gather, are you even getting a user input?
maze[(robot_y*10) + robot_x]
what is this... |
Forum: Java Jun 26th, 2009 |
| Replies: 2 Views: 425 I am worried when you say "their files", and "all over the world". If you are talking about files/database on some server then I would agree, but if you are talking about files on a client computer,... |
Forum: Java Jun 23rd, 2009 |
| Replies: 5 Views: 334 I hope that is supposed to be:
FileInputStream fileHandler = new FileInputStream("myfile.fil");
furthermore, that constructor should not be throwing any IOExceptions, do you have more code or... |
Forum: Java Jun 6th, 2009 |
| Replies: 5 Views: 408 looks a lot better, my code would probably look very similar to that. |
Forum: Java Jun 4th, 2009 |
| Replies: 5 Views: 408 coding standards are a good practice to follow, and I guess it is a good thing you are trying to achieve a good standard. I believe there are some published guidelines available, which will give you... |
Forum: Java May 29th, 2009 |
| Replies: 5 Views: 630 sax and dom are 2 possibilities for you to use to parse XML. their APIs are also well documented. |
Forum: Java May 20th, 2009 |
| Replies: 23 Views: 1,342 well that is obviously Java, and the code should need to change for linux. next time, you should use code tags around your code. |
Forum: Java May 11th, 2009 |
| Replies: 28 Views: 1,059 I'm not sure it matters too much. Sure a database is probably a cleaner environment to use, but if it just for fun, who cares? Then again, it is probably worthwhile getting some experience coding /w... |
Forum: Java May 2nd, 2009 |
| Replies: 9 Views: 662 that method is going to involve a bit of thought, and i am not feeling quite up for thinking it out completely. i think at the moment you haven't quite accounted for having child nodes which are... |
Forum: Java May 2nd, 2009 |
| Replies: 9 Views: 662 from a quick glance i'd say your contructor isn't trimming the whitespaces correctly |
Forum: Java May 1st, 2009 |
| Replies: 9 Views: 662 oh right now i see what you mean. it is similar to your exising recursion, just use different conditions. all you need to do is keep track of some counter. |
Forum: Java Apr 30th, 2009 |
| Replies: 9 Views: 662 why does it need to be int? |
Forum: Java Apr 30th, 2009 |
| Replies: 9 Views: 662 i am not entirely sure what your issue is. what i gather is you having issues with "return on int", but you don't have to do you...
why not treat everything as a char? (assuming single digits) |
Forum: Java Apr 29th, 2009 |
| Replies: 14 Views: 1,239 are you getting compile or runtime errors?
if you are getting compile errors you are probably using static variables / methods in a non-static way or the other way around. just have a look at how... |
Forum: Java Apr 27th, 2009 |
| Replies: 14 Views: 1,239 perhaps you are over-complicating this problem...
i suggest you look at the Class java.io.File, which should be a lot better than reading files from stdin (i have never even tried that).
adding... |
Forum: Java Apr 27th, 2009 |
| Replies: 1 Views: 1,044 why are you defining the label in TestDraw? if it is going onto the DrawPanel, why not add it to that instead? |
Forum: Java Apr 27th, 2009 |
| Replies: 10 Views: 427 first of all, please use code tags so your code is readable. you should also try and post relevant sections of your code.
... |
Forum: Java Apr 13th, 2009 |
| Replies: 1 Views: 519 as long as "field_names", "tablename", and "condition" are variables... well they are variable. |
Forum: Java Apr 3rd, 2009 |
| Replies: 2 Views: 354 for resizing an image: http://www.velocityreviews.com/forums/t126229-resize-imagejpg-problem.html
your other issue, i believe it is because there is no repaint occuring until your maximise forces... |
Forum: Java Apr 3rd, 2009 |
| Replies: 31 Views: 1,320 add conditions to if plusminus == 0 block and it should work... |