File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
import java .awt .*;
3
3
import java .awt .event .ActionEvent ;
4
4
import java .awt .event .ActionListener ;
5
- import java .io .File ;
6
5
import java .util .Locale ;
6
+ import java .util .Objects ;
7
7
8
8
public class VramCalc extends JFrame implements ActionListener {
9
9
int bus ;
@@ -31,10 +31,10 @@ public class VramCalc extends JFrame implements ActionListener {
31
31
frame .setBackground (Color .lightGray );
32
32
frame .setResizable (false );
33
33
frame .setLayout (new GridLayout (4 ,1 ));
34
- icon = new ImageIcon ("img" + File . separator + " icon.png" );
34
+ icon = new ImageIcon (Objects . requireNonNull ( getClass (). getResource ( "img/ icon.png")) );
35
35
frame .setIconImage (icon .getImage ());
36
36
37
- title = new JLabel (new ImageIcon ("img" + File . separator + " logo.png" ));
37
+ title = new JLabel (new ImageIcon (Objects . requireNonNull ( getClass (). getResource ( "img/ logo.png")) ));
38
38
titlePanel = new JPanel ();
39
39
titlePanel .add (title );
40
40
titlePanel .setLayout (new GridLayout (1 ,1 ));
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments