title: Resizable frame in Gui
body: <p>how to get non resizable <code>frame</code> in gui i confused about this because i am using <code>setLayout(new FlowLayout());</code> so if i drag the size of the <code>frame</code> the location of my <code>button</code> is going to disarrange . here is my code so far</p>
  
  <pre><code>import java.awt.*;
  import javax.swing.*;
  public class aw extends JFrame
  {
      private JTextField aw1;
      private JLabel aww;
      private JButton aw2;
  
      public aw()
      {
          setLayout(new FlowLayout());
  
  
          aww = new JLabel("Enter Your Password");
          add(aww);
  
          aw1 = new JTextField(15);
          add(aw1);
  
          aw2 = new JButton("Enter");
          add(aw2);
      }
      public static void main(String args [])
      {
          aw v = new aw();
  
              v.setSize(200,200);
              v.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              v.setVisible(true);
      }
  }
  </code></pre>