Skip to content

Commit afc41ba

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

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/simplejavatexteditor/UI.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -511,23 +511,18 @@ else if (e.getSource() == boldButton) {
511511

512512
}
513513
else{
514-
515514
textArea.setFont(textArea.getFont().deriveFont(Font.BOLD));
516515
}
517-
518516
}// If the source of the event was the "Italic" button
519517
else if (e.getSource() == italicButton) {
520518
if (textArea.getFont().getStyle() == Font.ITALIC){
521519
textArea.setFont(textArea.getFont().deriveFont(Font.PLAIN));
522520

523521
}
524522
else{
525-
526523
textArea.setFont(textArea.getFont().deriveFont(Font.ITALIC));
527524
}
528-
529525
}
530-
531526
// Clear File (Code)
532527
if (e.getSource() == clearFile || e.getSource() == clearButton) {
533528

0 commit comments

Comments
 (0)