mirror of https://github.com/contiki-ng/mspsim
Use the size of the node image as default
This commit is contained in:
parent
7baefad3dd
commit
c4a91ce25c
|
|
@ -123,9 +123,10 @@ public abstract class AbstractNodeGUI extends JComponent implements ServiceCompo
|
|||
setPreferredSize(new Dimension(nodeImage.getIconWidth(),
|
||||
nodeImage.getIconHeight()));
|
||||
|
||||
WindowManager wm = (WindowManager) registry.getComponent("windowManager");
|
||||
WindowManager wm = registry.getComponent(WindowManager.class);
|
||||
window = wm.createWindow(windowName);
|
||||
window.add(this);
|
||||
window.pack();
|
||||
|
||||
startGUI();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue