title: Java: Use import or explicit package / class name?
body: <p>I'm writing a very basic app, extending the Swing JFrame. What are the differences between making an explicit reference:</p>
  
  <pre><code>public class LineTest extends javax.swing.JFrame {
  ...
  </code></pre>
  
  <p>or importing the class beforehand:</p>
  
  <pre><code>import javax.swing.JFrame;
  
  public class LineTest extends JFrame {
  ...
  </code></pre>
  
  <p>When (and why) would you use one technique over the other?</p>