I cannot seem to force a layout in Swing. I have a JComponent added to a JLayeredPane and I set a border on the JComponent. Then, I wa
JComponent
JLayeredPane
According to this (see the section titled "Synchronous Painting") the paintImmediately() method should work.