Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running Method more than once results in wrong results

 
Nizzle Jakeso
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well.. I've posted this over at the official Java Forums but nobody seems to reply on that so I'll just try it again but then over here =D

I've got an applet in which the other can draw some stuff for organisation chart.. and blahblah
aanyways on subject.. when the user wants to save it I call this method:



which works fine.. the first time it gets run
then the 2nd time (or 3rd.. or 4th.. etc) the image goes wrong =(

here's what I mean
when it goes correct (first time)
http://img171.imageshack.us/img171/4369/goodjw9.png
then when it goes wrong (2nd and later)
http://img249.imageshack.us/img249/6228/wrongwm6.png

as you can see the top of the image is being weirdish =/

does anyone know why this is?
and/or how I'm supposed to fix this?

**EDIT**
whoa sorry for the overload of code..

[ January 17, 2008: Message edited by: Nizzle ... ]
[ January 17, 2008: Message edited by: Nizzle Jakeso ]
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "Nizzle ... "-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, that's a too much code to read through, especially as the problem probably only occurs for some specific set of input data. Can you reduce it to a minimal version that still exhibits the problem?
 
Nizzle Jakeso
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do I really have to put my surname? =/

**EDIT**
how about this..
changed the code AND my name
*yay for me*
[ January 17, 2008: Message edited by: Nizzle Jakeso ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Nizzle Jakeso",

Please check your private messages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic