Skip to content

Commit 9372f74

Browse files
committed
SwingConsolePane: use a lambda for conciseness
1 parent cae5548 commit 9372f74

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/main/java/org/scijava/ui/swing/console/SwingConsolePane.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/*
2-
*
32
* #%L
43
* SciJava UI components for Java Swing.
54
* %%
@@ -116,13 +115,7 @@ public void append(final OutputEvent event) {
116115
@Override
117116
public void show() {
118117
if (window == null || window.isVisible()) return;
119-
threadService.queue(new Runnable() {
120-
121-
@Override
122-
public void run() {
123-
window.setVisible(true);
124-
}
125-
});
118+
threadService.queue(() -> window.setVisible(true));
126119
}
127120

128121
// -- UIComponent methods --

0 commit comments

Comments
 (0)