Skip to content

Commit 15032ad

Browse files
committed
Implemented Frame Icon
Added simple frame icon to replace default swing frame icon. This icon is just a place holder and can be change later.
1 parent 957d752 commit 15032ad

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

icons/ste.png

771 Bytes
Loading

src/simplejavatexteditor/UI.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ public class UI extends JFrame implements ActionListener {
9393
private boolean edit = false;
9494

9595
public UI() {
96+
try {
97+
ImageIcon image = new ImageIcon("icons/ste.png");
98+
super.setIconImage(image.getImage());
99+
} // try
100+
catch (Exception ex) {
101+
ex.printStackTrace();
102+
}
103+
96104
// Set the initial size of the window
97105
setSize(800, 500);
98106

0 commit comments

Comments
 (0)