Skip to content

Commit 826ca5c

Browse files
authored
Update UI.java
1 parent e8f266c commit 826ca5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simplejavatexteditor/UI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ else if (e.getSource() == saveFile || e.getSource() == saveButton) {
506506
saveFile();
507507
}// If the source of the event was the "Bold" button
508508
else if (e.getSource() == boldButton) {
509-
if(textArea.getFont().getStyle() == Font.BOLD){
509+
if (textArea.getFont().getStyle() == Font.BOLD){
510510
textArea.setFont(textArea.getFont().deriveFont(Font.PLAIN));
511511

512512
}
@@ -517,7 +517,7 @@ else if (e.getSource() == boldButton) {
517517

518518
}// If the source of the event was the "Italic" button
519519
else if (e.getSource() == italicButton) {
520-
if(textArea.getFont().getStyle() == Font.ITALIC){
520+
if (textArea.getFont().getStyle() == Font.ITALIC){
521521
textArea.setFont(textArea.getFont().deriveFont(Font.PLAIN));
522522

523523
}

0 commit comments

Comments
 (0)