• 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

Problem with methods to do graphics.

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi again...
Sorry to bug you guys about the same old program but I am having having problems getting to the methods of Guest.java to do graphic commands. It all comppiled fine but when Diner.java implements
"placeCheck();" & "colorCheck(page);" it does'nt show up in the applet when I run it.
Here is:
Guest.java
Diner.java

THANK YOU SOOOOO MUCH FOR YOUR HELP!!!




I JUST WANTED TO LET YOU GUYS KNOW THAT THIS SITE MAKES ME LEARN THREE TIMES AS FAST, THANK YOU FOR YOUR INPUT.
 
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to applets
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Brian,
You are missing the part about transferring the constructor parameters to the class variables. You are not doing that; therefore you are only dealing with default class values. Do this for your Guest constructor and things should work out.

For some reason your constructor was accepting double for place and your class was defining it as integer. I went with integer.
The drawing was close but not quite right. Good start though!
Regards,
Manfred.
[ July 09, 2002: Message edited by: Manfred Leonhardt ]
 
Beauty is in the eye of the 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