Check out example codes for "java swing absolute position". It will help you in understanding the concepts better.

Code Example 1

frame.setLayout(null);
JLabel label = new JLabel("First Name:");
label.setBounds(20, 20, 100, 20);

Learn ReactJs, React Native from akashmittal.com