Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

jagatuba

Anybody know Java?

  • 2 years ago
  • 2 years ago

  • This Question is Closed
  1. kracekumar
    Best Response
    You've already chosen the best response.
    Medals 0

    Why ?

    • 2 years ago
  2. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 0

    I need help figuring out why my program will compile but won't run.

    • 2 years ago
  3. kracekumar
    Best Response
    You've already chosen the best response.
    Medals 0

    Then paste your doubt rather than asking do we know java ?

    • 2 years ago
  4. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 0

    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.<init>(CalMortCalcTemp.java:139) at CalMortCalcTemp.main(CalMortCalcTemp.java:490)

    • 2 years ago
  5. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 0

    I've looked over the code and all seems well, but ....

    • 2 years ago
  6. kracekumar
    Best Response
    You've already chosen the best response.
    Medals 0

    Share your source code using gist.github.com

    • 2 years ago
  7. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 0

    k hang on

    • 2 years ago
  8. kracekumar
    Best Response
    You've already chosen the best response.
    Medals 0

    sure

    • 2 years ago
  9. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 0

    Sorry, I've never used that website Do I make a private or public Gist?

    • 2 years ago
  10. kracekumar
    Best Response
    You've already chosen the best response.
    Medals 0

    make a public gist.

    • 2 years ago
  11. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 0

    https://gist.github.com/1008737

    • 2 years ago
  12. mattfeury
    Best Response
    You've already chosen the best response.
    Medals 1

    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.

    • 2 years ago
  13. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 0

    Oh wow. I totally missed that. that should read: midPanel.add(termLab,console);

    • 2 years ago
  14. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 0

    lol

    • 2 years ago
  15. mattfeury
    Best Response
    You've already chosen the best response.
    Medals 1

    it's almost always something silly like that :).

    • 2 years ago
  16. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 0

    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.

    • 2 years ago
  17. mattfeury
    Best Response
    You've already chosen the best response.
    Medals 1

    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.

    • 2 years ago
  18. mattfeury
    Best Response
    You've already chosen the best response.
    Medals 1

    if i helped, please click 'good answer' so i'll get a medal :)

    • 2 years ago
  19. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 0

    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 . . .

    • 2 years ago
  20. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 0

    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).

    • 2 years ago
  21. jagatuba
    Best Response
    You've already chosen the best response.
    Medals 0

    eclipse will not alert you to this type of error because it occurs at run-time

    • 2 years ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.