mirror of https://github.com/noisymime/Arduino.git
Merge pull request #6411 from facchinm/huge_serialportlist_scrollable
Add scroller for serial port list menu
This commit is contained in:
commit
0c4d59d13f
|
@ -761,6 +761,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||||
portMenu = new JMenu(tr("Port"));
|
portMenu = new JMenu(tr("Port"));
|
||||||
populatePortMenu();
|
populatePortMenu();
|
||||||
toolsMenu.add(portMenu);
|
toolsMenu.add(portMenu);
|
||||||
|
MenuScroller.setScrollerFor(portMenu);
|
||||||
item = new JMenuItem(tr("Get Board Info"));
|
item = new JMenuItem(tr("Get Board Info"));
|
||||||
item.addActionListener(e -> handleBoardInfo());
|
item.addActionListener(e -> handleBoardInfo());
|
||||||
toolsMenu.add(item);
|
toolsMenu.add(item);
|
||||||
|
|
Loading…
Reference in New Issue