|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| IconImageProvider.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 | /* | |
| 2 | * IconImageProvider.java | |
| 3 | * | |
| 4 | * Created on April 10, 2007, 9:03 PM | |
| 5 | * | |
| 6 | * JTR is free software; you can redistribute it and/or modify it under the | |
| 7 | * terms of the GNU General Public License as published by the Free Software | |
| 8 | * Foundation; either version 2, or (at your option) any later version. | |
| 9 | */ | |
| 10 | ||
| 11 | package jtr.ui.swing; | |
| 12 | ||
| 13 | import java.awt.Image; | |
| 14 | import java.net.URL; | |
| 15 | import javax.swing.ImageIcon; | |
| 16 | ||
| 17 | /** | |
| 18 | * This class provides the icon image for JTR frames. | |
| 19 | * | |
| 20 | * @author frusso | |
| 21 | * @version 4.0 | |
| 22 | * @since 4.0 | |
| 23 | */ | |
| 24 | public class IconImageProvider { | |
| 25 | ||
| 26 | 13 | public static Image getIcon() { |
| 27 | 13 | URL url = TestResultFrame.class.getResource("images/jtrIcon.png"); |
| 28 | 13 | return new ImageIcon(url).getImage(); |
| 29 | } | |
| 30 | } |
|
||||||||||