Error == wrong file path
change path to E:\ drive and work
Erase render method and overwrote getPreferredSize() and paint() methods
Change made to folder res and the build path