0

I am getting a trouble to - use the getHeight() and getWidth() methods to determine the size of the applet screen.

Following are the shared image URL's of my code.

CheckBoard.java

ChessBoar.html

It would be very great if some one can help.

Termininja
  • 6,620
  • 12
  • 48
  • 49
  • I don't see anywhere you're calling `getHeight` or `getWidth`? FYI: [Java Plugin support deprecated](http://www.gizmodo.com.au/2016/01/rest-in-hell-java-plug-in/) and [Moving to a Plugin-Free Web](https://blogs.oracle.com/java-platform-group/entry/moving_to_a_plugin_free) – MadProgrammer Apr 22 '16 at 05:16
  • Currently the applet is opening according to the width and height set in .HTML but I don't know where to use get getHeight() and get width() in .HTML or in applet code.. Can you please tell me where to use these functions and how..and how to use them.? Thanks –  Apr 22 '16 at 06:41
  • I guess that would depend on what you want to use them for – MadProgrammer Apr 22 '16 at 06:41
  • Thanks for the quick response. I want to use it in java code of applet. –  Apr 22 '16 at 06:43
  • Can you help me with.the solution code? –  Apr 22 '16 at 07:54
  • I don't know, you simply call `getWidth()` and `getHeight()` from within the applet context when you need it, I'm not sure what more you're asking – MadProgrammer Apr 22 '16 at 08:03

0 Answers0