title: How can I create a GUI in Java using only code and not the graphical drag and drop? [uber-newbie]
body: <p>I've been told that creating GUI's using drag and drop generates unnecesary code and is frowned upon by most Java developers.</p>
  
  <p>I'm used to dragging and dropping things using Windows Forms **but ** I'm also very comfortable creating things using XAML for WPF applications.</p>
  
  <p>I'm a bit lost however on how to create a basic GUI in Java using only code.</p>
  
  <blockquote>
    <p><strong>What I'm using:</strong> Netbeans 6.8</p>
    
    <p><strong>What I want to do:</strong> Create a simple Window that will act as the main one
    that opens up when the application
    launches.</p>
  </blockquote>
  
  <p>How can I create a simple Window with the standard window buttons (close, minimize, maximize) and have a little button on the middle of it. Using only code.</p>
  
  <p>Also, what type of project do I create using NetBeans?</p>
  
  <p>Thanks for the help.</p>