title: Java import wildcard not importing everything inside package
body: <p>I'm writing a Java program that has a button with an action listener:</p>
  
  <pre><code>    JButton button = new JButton("Change");
      button.addActionListener(new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
              label.setText(textField.getText());
          }
      });
  </code></pre>
  
  <p>At the top of the file, I have these two import statements:</p>
  
  <pre><code>import java.awt.*;
  import javax.swing.*;
  </code></pre>
  
  <p>I know this is terrible practice, I am revising for an exam and it's way easier and quicker to just write that at the top of the page.</p>
  
  <p>I get an error, however, telling me to import <code>java.awt.event.ActionListener</code></p>
  
  <p>If the <code>event</code> package is inside <code>java.awt</code> and I used the wildcard <code>*</code> to import everything, then why is it not being imported??</p>