@@ -278,11 +278,11 @@ public void actionPerformed(ActionEvent e) {
278278 fontSizeField .setText (String .valueOf (editorFont .getSize ()));
279279 top += d .height + GUI_BETWEEN ;
280280
281-
282- // [ ] Use smooth text in editor window
281+
282+ // [ ] Use smooth text in editor window
283283
284284 editorAntialiasBox =
285- new JCheckBox ("Use smooth text in editor window " +
285+ new JCheckBox ("Use smooth text in editor window " +
286286 "(requires restart of Processing)" );
287287 pain .add (editorAntialiasBox );
288288 d = editorAntialiasBox .getPreferredSize ();
@@ -291,7 +291,7 @@ public void actionPerformed(ActionEvent e) {
291291 right = Math .max (right , left + d .width );
292292 top += d .height + GUI_BETWEEN ;
293293
294-
294+
295295 // [ ] Increase maximum available memory to [______] MB
296296
297297 Container memoryBox = Box .createHorizontalBox ();
@@ -348,16 +348,16 @@ public void actionPerformed(ActionEvent e) {
348348 checkUpdatesBox .setBounds (left , top , d .width + 10 , d .height );
349349 right = Math .max (right , left + d .width );
350350 top += d .height + GUI_BETWEEN ;
351-
352-
351+
352+
353353 // Run sketches on display [ 1 ]
354354
355355 Container displayBox = Box .createHorizontalBox ();
356356 JLabel displayLabel = new JLabel ("Run sketches on display " );
357357 final String tip = "<html>" +
358358 "Sets the display where sketches are initially placed.<br>" +
359359 "As usual, if the sketch window is moved, it will re-open<br>" +
360- "at the same location, however when running in present<br>" +
360+ "at the same location, however when running in present<br>" +
361361 "(full screen) mode, this display will always be used." ;
362362 displayLabel .setToolTipText (tip );
363363 displayBox .add (displayLabel );
@@ -381,10 +381,10 @@ public void actionPerformed(ActionEvent e) {
381381 right = Math .max (right , left + d .width );
382382 top += d .height + GUI_BETWEEN ;
383383 }
384-
385-
384+
385+
386386 // Launch programs as [ ] 32-bit [ ] 64-bit (Mac OS X only)
387-
387+
388388 if (Base .isMacOS ()) {
389389 box = Box .createHorizontalBox ();
390390 label = new JLabel ("Launch programs in " );
@@ -393,17 +393,17 @@ public void actionPerformed(ActionEvent e) {
393393 box .add (bitsThirtyTwoButton );
394394 bitsSixtyFourButton = new JRadioButton ("64-bit mode" );
395395 box .add (bitsSixtyFourButton );
396-
396+
397397 ButtonGroup bg = new ButtonGroup ();
398398 bg .add (bitsThirtyTwoButton );
399399 bg .add (bitsSixtyFourButton );
400-
400+
401401 pain .add (box );
402402 d = box .getPreferredSize ();
403403 box .setBounds (left , top , d .width , d .height );
404404 top += d .height + GUI_BETWEEN ;
405405 }
406-
406+
407407
408408 // More preferences are in the ...
409409
@@ -543,7 +543,7 @@ protected void disposeFrame() {
543543 */
544544 protected void applyFrame () {
545545 setBoolean ("editor.antialias" , editorAntialiasBox .isSelected ());
546-
546+
547547 // put each of the settings into the table
548548 setBoolean ("export.applet.separate_jar_files" ,
549549 exportSeparateBox .isSelected ());
@@ -571,7 +571,7 @@ protected void applyFrame() {
571571 displayIndex = d ;
572572 }
573573 }
574- setInteger ("run.display" , displayIndex + 1 );
574+ setInteger ("run.display" , displayIndex );
575575
576576 setBoolean ("run.options.memory" , memoryOverrideBox .isSelected ());
577577 int memoryMin = Preferences .getInteger ("run.options.memory.initial" );
@@ -656,13 +656,13 @@ protected void showFrame(Editor editor) {
656656 setSelected (getBoolean ("update.check" ));
657657
658658 updateDisplayList ();
659- int displayNum = getInteger ("run.display" ) - 1 ;
659+ int displayNum = getInteger ("run.display" );
660660// System.out.println("display is " + displayNum + ", d count is " + displayCount);
661661 if (displayNum >= 0 && displayNum < displayCount ) {
662662// System.out.println("setting num to " + displayNum);
663663 displaySelectionBox .setSelectedIndex (displayNum );
664664 }
665-
665+
666666 memoryOverrideBox .
667667 setSelected (getBoolean ("run.options.memory" ));
668668 memoryField .
@@ -681,7 +681,7 @@ protected void showFrame(Editor editor) {
681681 bitsThirtyTwoButton .setEnabled (false );
682682 }
683683 }
684-
684+
685685 if (autoAssociateBox != null ) {
686686 autoAssociateBox .
687687 setSelected (getBoolean ("platform.auto_file_type_associations" ));
@@ -697,7 +697,7 @@ void updateDisplayList() {
697697// displaySelectionBox.removeAll();
698698 String [] items = new String [displayCount ];
699699 for (int i = 0 ; i < displayCount ; i ++) {
700- items [i ] = String .valueOf (i + 1 );
700+ items [i ] = String .valueOf (i );
701701// displaySelectionBox.add(String.valueOf(i + 1));
702702 }
703703// PApplet.println(items);
@@ -706,22 +706,22 @@ void updateDisplayList() {
706706 }
707707
708708
709- // Workaround for Apple bullsh*t caused by their not releasing a 32-bit
709+ // Workaround for Apple bullsh*t caused by their not releasing a 32-bit
710710 // version of Java for Mac OS X 10.5.
711711// static public String checkBits() {
712712// String bits = Preferences.get("run.options.bits");
713713// if (bits == null) {
714714// if (System.getProperty("os.version").startsWith("10.5")) {
715- // bits = "64";
715+ // bits = "64";
716716// } else {
717717// bits = "32";
718718// }
719719// Preferences.set("run.options.bits", bits);
720720// }
721721// return bits;
722722// }
723-
724-
723+
724+
725725 // .................................................................
726726
727727
@@ -800,8 +800,8 @@ static public String getDefault(String attribute) {
800800 static public void set (String attribute , String value ) {
801801 table .put (attribute , value );
802802 }
803-
804-
803+
804+
805805 static public void unset (String attribute ) {
806806 table .remove (attribute );
807807 }
0 commit comments