• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing Sample Code Not Working (Deitel's java)  RSS feed

 
Zeke Hans
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not to be an idiot about others, but I tried posting this question on stackoverflow, but all I got was a down vote, and got an answer about how my indentation was wrong. Ok I fixed that, but the code from the book still does not work. Make me kind of mad. In any case, hi ,new user! Here is my question:

That was class one.

That was class two. I got this out of Deitel's java book. I am frustrated since I am new to Java, and this does not make sense. All I want to know is if the enclosed code in the attachment is right, or if it was a fail on my part inputting the code. Thank you. (I am using eclipse, and have the latest version of Java).
javaquestion.png
[Thumbnail for javaquestion.png]
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Zeus,

Welcome to the ranch!

Can you tell us what you mean when you say the code doesnt work? what happens? what errors do you get? what does it do or not do that differs from your expectations?
 
Stuie Clarky
Ranch Hand
Posts: 98
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use Eclipse, does that give you any error messages?

Also with that textbook, I believe there is a site that you can download all the source code used in the examples from that is specified in the book somewhere (I don't have it to hand so I can't check). Also it might be worth checking the publishers site to see if there is any amendments/corrections that have been published.

Aside from that it is hard to help you when we don't know what the error is.


S


Edit: Also this person seems to also be having issues with the exercise, perhaps that will help you?
Other ranch question

 
Zeke Hans
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out . I did not have the photo haha . Thanks .
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!