Last active
March 10, 2019 12:21
-
-
Save ezhov-da/2e9d54eabaa1170bf4ab4643a932bf2e to your computer and use it in GitHub Desktop.
java иконка из web
This file contains 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
[code:]java[:code] | |
URL url; | |
try | |
{ | |
url = new URL("http://office6887:8080/web_otz/icon/create_edit_filter_16x16.png"); | |
Image image = ImageIO.read(url); | |
component.setIcon(new ImageIcon(image)); | |
} catch (MalformedURLException ex) | |
{ | |
Logger.getLogger(ContextMenuPerformer.class.getName()).log(Level.SEVERE, null, ex); | |
} catch (IOException ex) | |
{ | |
Logger.getLogger(ContextMenuPerformer.class.getName()).log(Level.SEVERE, null, ex); | |
} | |
[/code] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment