Search Results

Showing results 1 to 40 of 239
Search took 0.02 seconds.
Search: Posts Made By: sillyboy ; Forum: Java and child forums
Forum: Java Aug 18th, 2009
Replies: 5
Views: 824
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
um.... why?

don't do the homework of others.
Forum: Java Jul 30th, 2009
Replies: 10
Views: 349
Posted By sillyboy
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
Posted By sillyboy
what exactly is the problem? it is a little unclear to me...
Forum: Java Jul 23rd, 2009
Replies: 2
Views: 222
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
do you mean JavaScript?

if so: navigator.userAgent
Forum: Java Jul 17th, 2009
Replies: 10
Views: 658
Posted By sillyboy
4. stop hi-jacking threads
5. don't post complete code (at least initially)
Forum: Java Jul 17th, 2009
Replies: 10
Views: 658
Posted By sillyboy
oliver, just stop posting.
Forum: Java Jul 9th, 2009
Replies: 63
Views: 133,097
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
looks a lot better, my code would probably look very similar to that.
Forum: Java Jun 4th, 2009
Replies: 5
Views: 408
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
from a quick glance i'd say your contructor isn't trimming the whitespaces correctly
Forum: Java May 1st, 2009
Replies: 9
Views: 662
Posted By sillyboy
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
Posted By sillyboy
why does it need to be int?
Forum: Java Apr 30th, 2009
Replies: 9
Views: 662
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
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
Posted By sillyboy
as long as "field_names", "tablename", and "condition" are variables... well they are variable.
Forum: Java Apr 3rd, 2009
Replies: 2
Views: 354
Posted By sillyboy
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
Posted By sillyboy
add conditions to if plusminus == 0 block and it should work...
Showing results 1 to 40 of 239

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC