title: How to scale my JComponents in base of screen resolution\size in java?
body: <p>I've a <code>JPanel</code> with a lot of <code>JComponents</code> inside it and I would like that the panel is ok regardless of screen size, so it can be seen on different monitors. I added scroll-bars to bypass this problem but it's not enough.
  Reading some tips on <code>stackoverflow.com</code> and layout managers tutorial, I found out GridBagLayout's weightx\weighty functionality and I thought to solve my problem in this way. But there is something more to discover. My JComponents have Font size, border size, hgap and vgap for some jpanels and I would like that even these constants to be dipendent from screen resize. How can I get this goal? Thank you in advance.</p>