0

I can replace any given JFrame icon in Swing with a call to JFrame.setIconImage(). However, I have an existing application that pops up lots of JOptionPanes and other JFrames/dialogs, and rather than track them all down I'm wondering if there is a way to switch these over to my custom icon all in one place? Also, in some instances (ProgressMonitor, for example) I don't have access to the actual JFrame to fiddle with.

4

1 回答 1

0

您可以将JFrames创建的内容存储在List. 然后,您可以使用循环来获取此列表中的每一帧,并应用图标。

于 2013-03-07T15:34:03.093 回答