In Java Swing, for all components there is a setSize method which takes int height and width as arguments.
And we will pass parameters like 600,500 & 400,300 etc...
My doubt is what is the unit of these height and width . I mean on what unit, the size of the component is rendered. Is it Centimeter,mm,pixels ?
Im not sure how these numbers(height and width) contribute to the rendering of the component.
Please throw light on it.