swing - Random Image in Java Dialog Popup Boxes -


random images keep appearing in all of my java popup boxes: "inkeep editor" should not there... 'inkeep editor' image file called 'icon' , used apple dock.

string response = joptionpane.showinputdialog(home.toolbar, "please confirm password make changes", "confirm password", joptionpane.question_message); 

joptionpane.showmessagedialog(home.toolbar, "wrong password", "verify account", joptionpane.error_message); 

i'm setting image dock icon (mac) not pop boxes (to knowledge).

application application = application.getapplication(); image image = toolkit.getdefaulttoolkit().getimage("src/resources/icon.png"); // sets apple icon image application.setdockiconimage(image); 

does know how rid of these images in dialogs? big red (!) intended not inkeep editor on it.

this expected behavior -- feature. when give application icon, display on top of default warning/error icons. reinforces user dialog popped application , not or os.

for example, here how looks using default java app icon:

enter image description here

to add custom icon, can this:

imageicon icon = new imageicon(...); joptionpane.showmessagedialog(null, "", "", joptionpane.error_message, icon); 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -