• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Swing Sample Code Not Working (Deitel's java)

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 104
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I figured it out . I did not have the photo haha . Thanks .
 
no wonder he is so sad, he hasn't seen this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic