You need to add main_panel.revalidate();
before the repaint()
call in order to instruct the Swing layout manager to re-layout newly added components again.
3
solved problems with java layout manager
You need to add main_panel.revalidate();
before the repaint()
call in order to instruct the Swing layout manager to re-layout newly added components again.
3
solved problems with java layout manager