From d0d349e5a8cd1d48bfe50fc93e762b26ee17a39a Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Sun, 19 Jun 2011 16:11:23 +0200 Subject: Fix warnings git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@484 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/view/IView.java | 20 ++++++++++++++++++-- src/jrummikub/view/impl/HandPanel.java | 2 -- src/jrummikub/view/impl/PlayerPanel.java | 1 - src/jrummikub/view/impl/View.java | 2 +- 4 files changed, 19 insertions(+), 6 deletions(-) (limited to 'src/jrummikub/view') diff --git a/src/jrummikub/view/IView.java b/src/jrummikub/view/IView.java index 86ab5be..0074b8d 100644 --- a/src/jrummikub/view/IView.java +++ b/src/jrummikub/view/IView.java @@ -237,7 +237,6 @@ public interface IView { */ public void showGameListPanel(boolean show); - /** * Is set if a player tried to lay out less than initial meld threshold * @@ -250,6 +249,7 @@ public interface IView { * Show stone collection * * @param enable + * showing collection */ public void setStoneCollectionHidden(boolean enable); @@ -258,7 +258,14 @@ public interface IView { */ public void setInitialMeldFirstError(); + /** + * Set invalid sets to enable showing + * + * @param sets + * invalid sets on table + */ public void setInvalidStoneSets(Collection sets); + /** * Different types of bottom panels */ @@ -276,7 +283,16 @@ public interface IView { /** */ WIN_PANEL } - void showError(); + /** + * Show when loading is unsuccessful + */ + void showLoadingError(); + + /** + * Enables/disables saving in menu bar + * + * @param enable + */ void enableSave(boolean enable); } diff --git a/src/jrummikub/view/impl/HandPanel.java b/src/jrummikub/view/impl/HandPanel.java index 181be07..c07bee0 100644 --- a/src/jrummikub/view/impl/HandPanel.java +++ b/src/jrummikub/view/impl/HandPanel.java @@ -6,8 +6,6 @@ import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Insets; import java.awt.RenderingHints; -import java.awt.event.ComponentAdapter; -import java.awt.event.ComponentEvent; import java.awt.image.BufferedImage; import java.util.Collection; import java.util.Collections; diff --git a/src/jrummikub/view/impl/PlayerPanel.java b/src/jrummikub/view/impl/PlayerPanel.java index 2cf7eaa..cfb858f 100644 --- a/src/jrummikub/view/impl/PlayerPanel.java +++ b/src/jrummikub/view/impl/PlayerPanel.java @@ -6,7 +6,6 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ComponentAdapter; import java.awt.event.ComponentEvent; -import java.awt.event.ComponentListener; import java.text.DecimalFormat; import java.util.Collections; diff --git a/src/jrummikub/view/impl/View.java b/src/jrummikub/view/impl/View.java index e436419..cb9bd93 100644 --- a/src/jrummikub/view/impl/View.java +++ b/src/jrummikub/view/impl/View.java @@ -165,7 +165,7 @@ public class View extends JFrame implements IView { } @Override - public void showError() { + public void showLoadingError() { JOptionPane.showMessageDialog(this, "Kein g\u00fcltiger Spielstand", "Fehler", JOptionPane.ERROR_MESSAGE); } -- cgit v1.2.3