auto-sync

This commit is contained in:
rusEfi 2014-09-02 09:02:50 -05:00
parent a66d0211ea
commit 9cb412064f
2 changed files with 13 additions and 7 deletions

View File

@ -19,7 +19,7 @@ import javax.swing.*;
* @see WavePanel
*/
public class Launcher extends FrameHelper {
public static final int CONSOLE_VERSION = 20140831;
public static final int CONSOLE_VERSION = 20140902;
public static final boolean SHOW_STIMULATOR = true;
public Launcher(String port) {

View File

@ -49,12 +49,18 @@ public class RecentCommands {
public void add(String command) {
entries.put(new Entry(command), null);
content.removeAll();
for (Entry entry : entries.keySet()) {
content.add(createButton(entry));
}
UpDownImage.trueRepaint(content.getParent());
UpDownImage.trueLayout(content.getParent());
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
content.removeAll();
for (Entry entry : entries.keySet()) {
content.add(createButton(entry));
}
UpDownImage.trueRepaint(content.getParent());
UpDownImage.trueLayout(content.getParent());
}
});
}
private JComponent createButton(final Entry entry) {