diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-19 16:11:23 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-06-19 16:11:23 +0200 |
commit | d0d349e5a8cd1d48bfe50fc93e762b26ee17a39a (patch) | |
tree | bc51f6e3a79684f67c193c82778dd7008acd763b /src/jrummikub/view | |
parent | 92fe29000b3a8da2adc498154521e7969b6f9c5f (diff) | |
download | JRummikub-d0d349e5a8cd1d48bfe50fc93e762b26ee17a39a.tar JRummikub-d0d349e5a8cd1d48bfe50fc93e762b26ee17a39a.zip |
Fix warnings
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@484 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view')
-rw-r--r-- | src/jrummikub/view/IView.java | 20 | ||||
-rw-r--r-- | src/jrummikub/view/impl/HandPanel.java | 2 | ||||
-rw-r--r-- | src/jrummikub/view/impl/PlayerPanel.java | 1 | ||||
-rw-r--r-- | src/jrummikub/view/impl/View.java | 2 |
4 files changed, 19 insertions, 6 deletions
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<StoneSet> 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); } |