New course! Every coder should learn Generative AI!
Try a free lesson+ 10
import javax.swing.JOptionPane imports only the JOptionPane class in javax.swing package but if you do import javax.swing.* all classes in javax.swing package will be imported. The asterisk (*) is a wildcard that imports all classes.
+ 4
there are also packages with similar names that must be imported separately
import javax.swing.*;
import javax.swing.text.*;
+ 2
Dou you use netbeans?
0
Thanks
0
Yot