mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
parent
a55a6d2a9d
commit
240e1b5624
@ -1452,6 +1452,7 @@ public class Editor extends JFrame implements RunnerListener {
|
|||||||
codePanel.removeAll();
|
codePanel.removeAll();
|
||||||
codePanel.add(tabs.get(index), BorderLayout.CENTER);
|
codePanel.add(tabs.get(index), BorderLayout.CENTER);
|
||||||
tabs.get(index).requestFocusInWindow(); // get the caret blinking
|
tabs.get(index).requestFocusInWindow(); // get the caret blinking
|
||||||
|
tabs.get(index).applyPreferences();
|
||||||
// For some reason, these are needed. Revalidate says it should be
|
// For some reason, these are needed. Revalidate says it should be
|
||||||
// automatically called when components are added or removed, but without
|
// automatically called when components are added or removed, but without
|
||||||
// it, the component switched to is not displayed. repaint() is needed to
|
// it, the component switched to is not displayed. repaint() is needed to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user