Fix warnings

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@484 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Ida Massow 2011-06-19 16:11:23 +02:00
parent 92fe29000b
commit d0d349e5a8
14 changed files with 129 additions and 75 deletions

View file

@ -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);
}

View file

@ -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;

View file

@ -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;

View file

@ -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);
}