SyntaxFix
Write A Post
Hire A Developer
Questions
Try
SwingUtilities.updateComponentTreeUI(frame);
If it still doesn't work then after completing the above step try
frame.invalidate(); frame.validate(); frame.repaint();