java - Using UIManager to resize the default Icon size? -


i'm teaching group basic java , 1 student has used j option panes include images in "make own adventure" type game.

joptionpane.showmessagedialog(null, "add text", "doge", joptionpane.plain_message, new imageicon(new url("https://pbs.twimg.com/media/cbg6okqukai2pab.jpg")));

however, way add simple uimanager line @ start resize images finds url's , make them fixed.

we did change button text so.

uimanager.put("optionpane.okbuttontext", "proceed");

i want see if can taught way not on complicate, want students focusing on basics of language, , these simple lines @ start allow them customise without going off topic bizarrely.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -