I have 2 JPanels in a frame. The first panel contains java items like buttons etc. The two buttons I added appears but the JSpinner appear just after I resize the window. I
Add setVisible(true) at the end and it works.
setVisible(true)