Force immediate layout and paint in Swing

后端 未结 3 933
北恋
北恋 2020-12-19 09:54

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

3条回答
  •  感情败类
    2020-12-19 10:00

    According to this (see the section titled "Synchronous Painting") the paintImmediately() method should work.

提交回复
热议问题