Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Problem with methods to do graphics.

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Moving this to applets
 
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • 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 ]
 
I am mighty! And this is a mighty small ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic