mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-17 08:55:05 -04:00
minor layout changes
This commit is contained in:
parent
1994ae8054
commit
0c7efdbc9c
@ -13,6 +13,7 @@ import de.neemann.digital.core.io.InValue;
|
||||
import de.neemann.digital.core.io.Out;
|
||||
import de.neemann.digital.core.memory.DataField;
|
||||
import de.neemann.digital.core.memory.DataFieldConverter;
|
||||
import de.neemann.digital.core.memory.rom.ROMManger;
|
||||
import de.neemann.digital.core.wiring.Clock;
|
||||
import de.neemann.digital.draw.graphics.Graphic;
|
||||
import de.neemann.digital.draw.graphics.Polygon;
|
||||
@ -84,6 +85,7 @@ public class Circuit {
|
||||
xStream.alias("testData", TestCaseDescription.class);
|
||||
xStream.alias("inverterConfig", InverterConfig.class);
|
||||
xStream.addImplicitCollection(InverterConfig.class, "inputs");
|
||||
xStream.alias("storedRoms", ROMManger.class);
|
||||
xStream.ignoreUnknownElements();
|
||||
return xStream;
|
||||
}
|
||||
|
@ -63,8 +63,7 @@ public class ROMEditorDialog extends JDialog {
|
||||
}
|
||||
});
|
||||
|
||||
JPanel buttons = new JPanel();
|
||||
buttons.setLayout(new BoxLayout(buttons, BoxLayout.Y_AXIS));
|
||||
JPanel buttons = new JPanel(new FlowLayout());
|
||||
buttons.add(new ToolTipAction(Lang.get("btn_edit")) {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
@ -83,15 +82,14 @@ public class ROMEditorDialog extends JDialog {
|
||||
}.setToolTip(Lang.get("tt_deleteItem")).createJButton());
|
||||
getContentPane().add(buttons, BorderLayout.EAST);
|
||||
|
||||
JButton okButton = new JButton(new AbstractAction(Lang.get("ok")) {
|
||||
buttons.add(new JButton(new AbstractAction(Lang.get("ok")) {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
ok = true;
|
||||
dispose();
|
||||
}
|
||||
});
|
||||
getContentPane().add(okButton, BorderLayout.SOUTH);
|
||||
|
||||
}));
|
||||
getContentPane().add(buttons, BorderLayout.SOUTH);
|
||||
|
||||
pack();
|
||||
setLocationRelativeTo(parent);
|
||||
|
@ -4,7 +4,7 @@
|
||||
<attributes>
|
||||
<entry>
|
||||
<string>romContent</string>
|
||||
<de.neemann.digital.core.memory.rom.ROMManger>
|
||||
<storedRoms>
|
||||
<roms>
|
||||
<entry>
|
||||
<string>R3-B</string>
|
||||
@ -39,7 +39,7 @@
|
||||
<data size="4">9,a,b,c</data>
|
||||
</entry>
|
||||
</roms>
|
||||
</de.neemann.digital.core.memory.rom.ROMManger>
|
||||
</storedRoms>
|
||||
</entry>
|
||||
</attributes>
|
||||
<visualElements>
|
||||
|
Loading…
x
Reference in New Issue
Block a user