We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8f266c commit 826ca5cCopy full SHA for 826ca5c
1 file changed
src/simplejavatexteditor/UI.java
@@ -506,7 +506,7 @@ else if (e.getSource() == saveFile || e.getSource() == saveButton) {
506
saveFile();
507
}// If the source of the event was the "Bold" button
508
else if (e.getSource() == boldButton) {
509
- if(textArea.getFont().getStyle() == Font.BOLD){
+ if (textArea.getFont().getStyle() == Font.BOLD){
510
textArea.setFont(textArea.getFont().deriveFont(Font.PLAIN));
511
512
}
@@ -517,7 +517,7 @@ else if (e.getSource() == boldButton) {
517
518
}// If the source of the event was the "Italic" button
519
else if (e.getSource() == italicButton) {
520
- if(textArea.getFont().getStyle() == Font.ITALIC){
+ if (textArea.getFont().getStyle() == Font.ITALIC){
521
522
523
0 commit comments