Examples now scrollable. Closes #1548 and #1177

This commit is contained in:
Federico Fissore 2013-10-17 17:25:39 +02:00
parent d535f878f6
commit 49a05121d4
1 changed files with 4 additions and 1 deletions

View File

@ -48,6 +48,7 @@ import processing.app.helpers.filefilters.OnlyFilesWithExtension;
import processing.app.javax.swing.filechooser.FileNameExtensionFilter;
import processing.app.packages.Library;
import processing.app.packages.LibraryList;
import processing.app.tools.MenuScroller;
import processing.app.tools.ZipDeflater;
import processing.core.*;
import static processing.app.I18n._;
@ -1632,8 +1633,10 @@ public class Base {
// not a sketch folder, but maybe a subfolder containing sketches
JMenu submenu = new JMenu(name);
boolean found = addSketches(submenu, folder, replaceExisting);
if (found)
if (found) {
menu.add(submenu);
MenuScroller.setScrollerFor(submenu);
}
return found;
}