mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-18 17:34:43 -04:00
changed delete icon
This commit is contained in:
parent
5f0bb54e17
commit
141609e9be
@ -43,7 +43,10 @@ import static java.awt.event.InputEvent.CTRL_DOWN_MASK;
|
|||||||
* @author hneemann
|
* @author hneemann
|
||||||
*/
|
*/
|
||||||
public class CircuitComponent extends JComponent {
|
public class CircuitComponent extends JComponent {
|
||||||
private static final Icon ICON_DELETE = IconCreator.create("edit-delete.png");
|
/**
|
||||||
|
* The delete icon, also used from {@link de.neemann.digital.gui.components.terminal.TerminalDialog}
|
||||||
|
*/
|
||||||
|
public static final Icon ICON_DELETE = IconCreator.create("delete.png");
|
||||||
private static final String DEL_ACTION = "myDelAction";
|
private static final String DEL_ACTION = "myDelAction";
|
||||||
|
|
||||||
private final ElementLibrary library;
|
private final ElementLibrary library;
|
||||||
|
@ -2,8 +2,8 @@ package de.neemann.digital.gui.components.terminal;
|
|||||||
|
|
||||||
import de.neemann.digital.core.element.ElementAttributes;
|
import de.neemann.digital.core.element.ElementAttributes;
|
||||||
import de.neemann.digital.core.element.Keys;
|
import de.neemann.digital.core.element.Keys;
|
||||||
|
import de.neemann.digital.gui.components.CircuitComponent;
|
||||||
import de.neemann.digital.lang.Lang;
|
import de.neemann.digital.lang.Lang;
|
||||||
import de.neemann.gui.IconCreator;
|
|
||||||
import de.neemann.gui.ToolTipAction;
|
import de.neemann.gui.ToolTipAction;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@ -36,7 +36,7 @@ public class TerminalDialog extends JDialog {
|
|||||||
getContentPane().add(new JScrollPane(textArea));
|
getContentPane().add(new JScrollPane(textArea));
|
||||||
|
|
||||||
JToolBar toolBar = new JToolBar();
|
JToolBar toolBar = new JToolBar();
|
||||||
toolBar.add(new ToolTipAction(Lang.get("menu_terminalDelete"), IconCreator.create("edit-delete.png")) {
|
toolBar.add(new ToolTipAction(Lang.get("menu_terminalDelete"), CircuitComponent.ICON_DELETE) {
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
textArea.setText("");
|
textArea.setText("");
|
||||||
|
BIN
src/main/resources/delete.png
Normal file
BIN
src/main/resources/delete.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB |
Loading…
x
Reference in New Issue
Block a user