>Also you code is very hard to read without some indentation.
> Knute Johnson ha scritto:
>
[quoted text clipped - 4 lines]
> Ok...i missed the import statements...but there's a complete class,
> with main method: what should i have to add?
I'd make it so that readers can cut text from your posting, save it to a
file and compile it with javac to make a working program that they can
run without them having to add anything. Have you heard of the idea of a
"Small Self-Contained Compilable Example" (SSCCE)?
>> Also you code is very hard to read without some indentation.
>
> I'm sorry, but i though that every IDE should have "format" and
> "organize import" functions...
OK, but firstly you are cutting yourself off from help by people who can
see where you are going wrong by simply reading the post here without
going to the effort of pasting it into an IDE and reformatting it.
Secondly, when posting a question, I think its better I spend 10 mins
formatting my example than expect 100 people spend 10 mins each
formatting my example (total 16.5 hours of their time wasted).
I find that the more work I ask make people to do (for free) the less
likely they are to be motivated to help. I'd spend the time to make it
easier for them to help me.
> and it probably doesn't compile due to
> the dipendency on JDIC libraries...
I'd spend a few minutes creating an example that shows the problem
without using JDIC libraries.
And - 31 Aug 2006 12:01 GMT
Ian Wilson ha scritto:
> I'd make it so that readers can cut text from your posting, save it to a
> file and compile it with javac to make a working program that they can
> run without them having to add anything. Have you heard of the idea of a
> "Small Self-Contained Compilable Example" (SSCCE)?
I agree with you.
> OK, but firstly you are cutting yourself off from help by people who can
> see where you are going wrong by simply reading the post here without
[quoted text clipped - 3 lines]
> formatting my example than expect 100 people spend 10 mins each
> formatting my example (total 16.5 hours of their time wasted).
No doubt about this, but i'm rather astonished of the text editor of
java.net.Forum: i usually have a daily activity on Usenet, i always try
to pay attention to quote and to provide the best way to read my
posts...i have to admit i was victim of hurry! :-/ :-)
> I find that the more work I ask make people to do (for free) the less
> likely they are to be motivated to help. I'd spend the time to make it
> easier for them to help me.
I think it too, see above...
> I'd spend a few minutes creating an example that shows the problem
> without using JDIC libraries.
Good...so can you suggest me any tips about building guis and avoid
errors like that one?
Thank you for the time you spent on this post, bye!