Skip to content

Commit b02ce54

Browse files
committed
Removed leftover stub for testing NotificationPopup dialog
1 parent 8e4ce4c commit b02ce54

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

Diff for: app/src/cc/arduino/view/NotificationPopup.java

+2-16
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929

3030
package cc.arduino.view;
3131

32+
import static processing.app.Theme.scale;
33+
3234
import java.awt.Color;
3335
import java.awt.FlowLayout;
3436
import java.awt.Frame;
@@ -45,14 +47,12 @@
4547
import javax.swing.JButton;
4648
import javax.swing.JDialog;
4749
import javax.swing.JEditorPane;
48-
import javax.swing.JFrame;
4950
import javax.swing.JLabel;
5051
import javax.swing.WindowConstants;
5152
import javax.swing.border.LineBorder;
5253
import javax.swing.event.HyperlinkListener;
5354

5455
import processing.app.Theme;
55-
import static processing.app.Theme.scale;
5656

5757
public class NotificationPopup extends JDialog {
5858

@@ -133,18 +133,4 @@ private void updateLocation(Frame parent) {
133133
public void close() {
134134
dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));
135135
}
136-
137-
public static void main(String args[]) {
138-
NotificationPopup dialog = new NotificationPopup(new JFrame(),
139-
System.out::println,
140-
"<a href='arduinoide://boardsmanager'>test</a> test test test test test test test test\n"
141-
+ " test test test test test test test test test test test");
142-
dialog.addWindowListener(new WindowAdapter() {
143-
@Override
144-
public void windowClosing(WindowEvent e) {
145-
System.exit(0);
146-
}
147-
});
148-
dialog.setVisible(true);
149-
}
150136
}

0 commit comments

Comments
 (0)