@@ -213,12 +213,7 @@ static public void guardedMain(String args[]) throws Exception {
213
213
try {
214
214
BaseNoGui .getPlatform ().setLookAndFeel ();
215
215
} catch (Exception e ) {
216
- String mess = e .getMessage ();
217
- if (mess .indexOf ("ch.randelshofer.quaqua.QuaquaLookAndFeel" ) == -1 ) {
218
- System .err .println (_ ("Non-fatal error while setting the Look & Feel." ));
219
- System .err .println (_ ("The error message follows, however Arduino should run fine." ));
220
- System .err .println (mess );
221
- }
216
+ // ignore
222
217
}
223
218
224
219
// Create a location for untitled sketches
@@ -2068,8 +2063,6 @@ static public int showYesNoCancelQuestion(Editor editor, String title,
2068
2063
// }
2069
2064
2070
2065
} else {
2071
- // Pane formatting adapted from the Quaqua guide
2072
- // http://www.randelshofer.ch/quaqua/guide/joptionpane.html
2073
2066
JOptionPane pane =
2074
2067
new JOptionPane ("<html> " +
2075
2068
"<head> <style type=\" text/css\" >" +
@@ -2089,11 +2082,6 @@ static public int showYesNoCancelQuestion(Editor editor, String title,
2089
2082
// highlight the safest option ala apple hig
2090
2083
pane .setInitialValue (options [0 ]);
2091
2084
2092
- // on macosx, setting the destructive property places this option
2093
- // away from the others at the lefthand side
2094
- pane .putClientProperty ("Quaqua.OptionPane.destructiveOption" ,
2095
- new Integer (2 ));
2096
-
2097
2085
JDialog dialog = pane .createDialog (editor , null );
2098
2086
dialog .setVisible (true );
2099
2087
@@ -2133,8 +2121,6 @@ static public int showYesNoQuestion(Frame editor, String title,
2133
2121
JOptionPane .YES_NO_OPTION ,
2134
2122
JOptionPane .QUESTION_MESSAGE );
2135
2123
} else {
2136
- // Pane formatting adapted from the Quaqua guide
2137
- // http://www.randelshofer.ch/quaqua/guide/joptionpane.html
2138
2124
JOptionPane pane =
2139
2125
new JOptionPane ("<html> " +
2140
2126
"<head> <style type=\" text/css\" >" +
0 commit comments