title: When do I need to import java.awt.*? If I want to import javax.swing.* do I need to also import java.awt.*?
body: <p>I'm getting back into Java and reviewing some of my old code and I'm seeing a lot of places where I have done</p>
  
  <pre><code>import javax.swing.*;
  import java.awt.*;
  </code></pre>
  
  <p>or actually importing specific classes from the swing/awt packages. I can't remember if I need to import java.awt.* to use anything in javax.swing.* or would I have imported java.awt.* for another reason? In other words, what is the purpose of importing java.awt.* ? I was under the impression everything I needed to use JButton, JFrame, etc. was in javax.swing.*.</p>