Do DrawRect and FillRect work on rectangles of the same size?
No. java.awt.Graphics.drawRect draws a rectangle that’s 1 pixel wider and 1 pixel taller than a rectangle drawn by fillRect. • (Sect. 19) My executable Jar files don’t work! It is possible to exactly follow the instructions given in the documentation and yet still get the following error message when attempting to run the .jar file: “Failed to load Main-Class manifest attribute from myapp.jar” There has to be a carriage return after the Main-Class definition in the manifest file, otherwise it does not work! Example, in a file called manifest.txt: Main-Class: MyClass // does not work Main-Class: MyClass // does work Then, when the manifest file is merged into the jar file like this: jar cmfv manifest.txt myapp.jar *.class it works fine. • (Sect. 19) Why do I get the error message “Wrong number of arguments in constructor” Almost certainly, you have written your constructor with a return type or void or something. I.e. you have written: public MyClass Myclass() { …} instead of: public