jagatuba
  • jagatuba
Anybody know Java?
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
Why ?
jagatuba
  • jagatuba
I need help figuring out why my program will compile but won't run.
anonymous
  • anonymous
Then paste your doubt rather than asking do we know java ?

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

jagatuba
  • jagatuba
I'm getting the following at run time. Exception in thread "main" java.lang.IllegalArgumentException: adding container's parent to itself at java.awt.Container.checkAddToSelf(Unknown Source) at java.awt.Container.addImpl(Unknown Source) at java.awt.Container.add(Unknown Source) at CalMortCalcTemp.(CalMortCalcTemp.java:139) at CalMortCalcTemp.main(CalMortCalcTemp.java:490)
jagatuba
  • jagatuba
I've looked over the code and all seems well, but ....
anonymous
  • anonymous
Share your source code using gist.github.com
jagatuba
  • jagatuba
k hang on
anonymous
  • anonymous
sure
jagatuba
  • jagatuba
Sorry, I've never used that website Do I make a private or public Gist?
anonymous
  • anonymous
make a public gist.
jagatuba
  • jagatuba
https://gist.github.com/1008737
mattfeury
  • mattfeury
termLab.add(termLab, console); you definitely can't do that. just what the compiler is saying: you can add a container to itself. when the compiler errors, it will give you a line number. Go to the line number as a starting point to solve.
jagatuba
  • jagatuba
Oh wow. I totally missed that. that should read: midPanel.add(termLab,console);
jagatuba
  • jagatuba
lol
mattfeury
  • mattfeury
it's almost always something silly like that :).
jagatuba
  • jagatuba
Well one thing I have learned is that it is usually the really simple things that get over looked. I was have some trouble with my previous version and it was as simple as not adding a button to my listener. That too took a second pair of eyes to point out.
mattfeury
  • mattfeury
heh yea always happens. if you find yourself looking the same problem for over 30 minutes, it can often be good to take a break, even for another 30 minutes. then you get a fresh look at it.
mattfeury
  • mattfeury
if i helped, please click 'good answer' so i'll get a medal :)
jagatuba
  • jagatuba
Yeah I do that . . . sometimes. I often find myself spending too long on something because I think I can figure it out in a few more minutes . . . and a few more minutes . . . and a few more minutes . . .
jagatuba
  • jagatuba
I will mos def get you a medal. the program works now. It just has some major formatting issues that shouldn't be too hard to fix (I hope).
jagatuba
  • jagatuba
eclipse will not alert you to this type of error because it occurs at run-time

Looking for something else?

Not the answer you are looking for? Search for more explanations.