Applications
Applications are much more useful than applets (they can access files, the internet, resize, etc). JApplets can easily be made applets, what you need to do:
extend JFrame, not JApplet
Add the following code (if the class was PaintBrush).
public static void main(String[] args) {
PaintBrush p = new PaintBrush();
p.init();
p.setExtendedState (JFrame.MAXIMIZED_BOTH); //this sets it to maximum size
// or set the size you want p.setSize(520,520);
p.setVisible(true);
}
Fun things you can do now:
|