It's possible to get an application using default look and feel decorated frames/dialogs to enter an infinite loop if the window icon configured is invalid.
I was able to reproduce this with the following short, self contained, correct example:
At the point of attempting to show the frame, nothing appears and the code enters an infinite loop. This problem only occurs if defaultLookAndFeelDecorated is true; it works fine if it is false.
The offending code appears to be the updateAppIcon() method in SubstanceTitlePane. If the value returned from the call to SubstanceCoreUtilities.getScaledIconImage() is null, the containing while loop repeats indefinitely.
It's possible to get an application using default look and feel decorated frames/dialogs to enter an infinite loop if the window icon configured is invalid.
I was able to reproduce this with the following short, self contained, correct example:
At the point of attempting to show the frame, nothing appears and the code enters an infinite loop. This problem only occurs if defaultLookAndFeelDecorated is true; it works fine if it is false.
The offending code appears to be the updateAppIcon() method in SubstanceTitlePane. If the value returned from the call to SubstanceCoreUtilities.getScaledIconImage() is null, the containing while loop repeats indefinitely.