Created
October 21, 2017 14:11
-
-
Save jnizet/f0a96550f794f5b4c792ba656c7d1b79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JButton addItemButton = new JButton("Add Item with icon"); | |
addItemButton.addActionListener(e -> { | |
map.put("foo", load("https://i.imgur.com/tSiZYyw.png")); | |
testBox.addItem("foo"); | |
}); | |
add(addItemButton); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment