mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-16 16:34:47 -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
|
||||
*/
|
||||
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 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.Keys;
|
||||
import de.neemann.digital.gui.components.CircuitComponent;
|
||||
import de.neemann.digital.lang.Lang;
|
||||
import de.neemann.gui.IconCreator;
|
||||
import de.neemann.gui.ToolTipAction;
|
||||
|
||||
import javax.swing.*;
|
||||
@ -36,7 +36,7 @@ public class TerminalDialog extends JDialog {
|
||||
getContentPane().add(new JScrollPane(textArea));
|
||||
|
||||
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
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
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