Chapter 18 Flashcards
What is java applet
An applet is a small Internet-based program written in Java, which can be downloaded by any computer. The applet is also able to run in HTML. The applet is usually embedded in an HTML page on a Web site and can be executed from within a browser.
Can java components redraw themselves when dealing with graphics in java
Yes
Does mostly repaint happen automatically
Yes
What is main method for painting
paintComponent()
Should we override paintBorder() or paintChildren() methods
No
How we call parent class method from child class
with super keyword e.g. super.paintComponent(g);
What draw and fill methods do
draw method make object with border only and fill method fill the color