title: Strategy to create a screen resolution independent java desktop application?
body: <p>I have been been programming with java using eclipse  for a few months and would consider myself at an intermediate level, and i have a vb.net background originally.</p>
  
  <p>I have a question about screen resolution( in pixels) and auto-scaling my application with two parts</p>
  
  <p>A) When you design a desktop application with swing( or JavaFX ) do you actually calculate the pixel width and height of every single component and then scale it up or down in code by detecting the screen resolution at startup?  Scene-Builder for JavaFX, Eclipse Windows Builder Gridbag layout and GroupLayout  have the facility to do it with a couple of clicks, and it is relatively easy . If it IS calculated and handcoded then that means I'll have to spend a lot of time planning ahead for each control.</p>
  
  <p>B) Is there a common consensus over a screen resolution ( 1024x768 e.g.) to design the application for "initially" ( and then scaling all controls according to detected screen resolution)? My monitor has 1920x1080 resolution but I am confused which resolution should i begin designing my application in. 1024x768 seems reasonable to me.</p>
  
  <p>Thank you very much for your time</p>