+
This commit is contained in:
parent
e2ad2fda8d
commit
141994f533
@ -50,7 +50,7 @@ class CollectionFrame extends JComponent {
|
|||||||
{
|
{
|
||||||
if (JOptionPane.showConfirmDialog(null, "Delete Tanker?", "Delete", JOptionPane.YES_NO_OPTION) == JOptionPane.OK_OPTION)
|
if (JOptionPane.showConfirmDialog(null, "Delete Tanker?", "Delete", JOptionPane.YES_NO_OPTION) == JOptionPane.OK_OPTION)
|
||||||
{
|
{
|
||||||
if (_tanks.minus(Integer.parseInt(text)))
|
if (_tanks.minus(Integer.parseInt(text)) != null)
|
||||||
{
|
{
|
||||||
JOptionPane.showMessageDialog(null, "Объект удален", "Информация", JOptionPane.INFORMATION_MESSAGE);
|
JOptionPane.showMessageDialog(null, "Объект удален", "Информация", JOptionPane.INFORMATION_MESSAGE);
|
||||||
super.repaint();
|
super.repaint();
|
||||||
|
Loading…
Reference in New Issue
Block a user