JFrame BorderLayout.CENTER not working on JPanel
posted 8 years ago
I made one JFrame. Then created a JPanel and on the JPanel I put labels, textboxes buttons etc. To make the orientation look good I have done jpanel.setLayout(null); and then have done setBounds for the components to be added on the JPanel (i.e. label, textFields and buttons etc...). Now I want that this jpanel should always remain in the center of the JFrame and should not have any influence of the frames resizing. Help me please.