What class is needed for each of the following cases a drawi
What class is needed for each of the following cases?
a. drawing
b. create a GUI application
c. creating a Java applet
d. create an I/O window
Solution
a. drawing --------------------------------------- java.awt.Graphics
b. create a GUI application ------------------------ SWING classes javax.swing.*
c. creating a Java applet ----------------------------java.applet.* , java.awt.*
d. create an I/O window ----------------------------- java.awt.Frame, java.awt.window , java.awt.component
