We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 826ca5c commit afc41baCopy full SHA for afc41ba
src/simplejavatexteditor/UI.java
@@ -511,23 +511,18 @@ else if (e.getSource() == boldButton) {
511
512
}
513
else{
514
-
515
textArea.setFont(textArea.getFont().deriveFont(Font.BOLD));
516
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){
521
textArea.setFont(textArea.getFont().deriveFont(Font.PLAIN));
522
523
524
525
526
textArea.setFont(textArea.getFont().deriveFont(Font.ITALIC));
527
528
529
530
531
// Clear File (Code)
532
if (e.getSource() == clearFile || e.getSource() == clearButton) {
533
0 commit comments