![]() ![]() If two packages provide the same type, both are imported, and the type is used in the class, a compile-time error occurs. It could be problematic for the compiler to import a bunch of packages at once. G.fillRect(0, 0, this.getWidth(), this.getHeight()) ![]() import javax.swing.* įtDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) įrame.getContentPane().add(BorderLayout.CENTER, drawPanel) ![]() The program works well, but I am looking for feedback in terms of quality and any improvements or alternative methods that could be used in such an application. I am learning to use Java Swing and have made a simple animation that makes a small shape bounce around the predetermined borders of a panel. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |