title: Java FlowLayout inside FlowLayout
body: <p>I am trying to design similar to a browsers title bar(top of the browser). Left side has tabs and  right side has minimize, resize(minimize/maximize),exit button.</p>
  
  <p>For this I tried like. </p>
  
  <pre><code>JPanel panel = new JPanel();
  panel.setLayout(new FlowLayout(FlowLayout.RIGHT));
  JPanel tabpanel= new JPanel();
  tabpanel.setLayout(new  FlowLayout(FlowLayout.LEFT));
  tabpanel.add(new JButton("Tab 1"));
  tabpanel.add(new JButton("Tab 2"));
  panel.add(tabpanel); 
  panel.add(new JButton("Minimize")); 
  panel.add(new JButton("Resize")); 
  panel.add(new JButton("Quit")); 
  </code></pre>
  
  <p>Created Quit, Resize, Minimize buttons at the right as my needed but tabs created near Minimize button not LEFT of Frame. I think there should be method or anything to fill it remainng content or should I use another layout? Any help appreciated</p>