I have made a project using setLayout(null) and added the components using setBounds. Now the requirement is that we have to use Layouts, so that the program runs in various resolutions (800x600) and (1024x768), which is not possible using hard bound values. How can I do this ? When I use scrollPane to add a table,and add it without using setSize, then it takes the whole window. Is there any other way to write a GUI SWING application which is independent of the screen resolution?