auto-sync
This commit is contained in:
parent
a66d0211ea
commit
9cb412064f
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue