emustudio / emuStudio

Universal emulation platform and framework.
https://www.emustudio.net/
GNU General Public License v3.0
40 stars 9 forks source link

Replace custom ImageIcons with UIManager constants #352

Open vbmacher opened 1 year ago

vbmacher commented 1 year ago

All toolbar icons (or other standard icons) should be using constants from UIManager instead of keeping icons in resources, e.g.:

btnBrowse.setIcon(UIManager.getIcon("Tree.openIcon"));

Then, emuStudio will set these icons globally:

Icon openIcon = new ImageIcon("open.gif");
UIManager.put("Tree.openIcon", openIcon);
...