title: Javafx in swing component resize
body: <p>i am creating a basic javafx in swing application where i added some component and resize is working ok for them then i have added a <code>jdialog</code> on a button when i  open and close jdialog for work my application loose resize.</p>
  
  <p>here is code for jdialog</p>
  
  <pre><code>jd=new JDialog();
        jd.add(createJpanelForSelection(data));
        jd.setMinimumSize(new Dimension(500,400));
        jd.setModalityType(Dialog.ModalityType.APPLICATION_MODAL);
        jd.show();
  </code></pre>
  
  <p>following are two images before and after opening jdialog   </p>
  
  <p><a href="https://i.stack.imgur.com/B135a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B135a.png" alt="before opening jdialog"></a></p>
  
  <p><a href="https://i.stack.imgur.com/HbkJy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HbkJy.png" alt="after jdialog"></a></p>
  
  <p>if i am working on application in full screen size then it don't appear but if size is less than full screen view than after jdialog it lost resizing</p>