Some minor formatting.

This commit is contained in:
LevelX2 2014-02-03 17:47:12 +01:00
parent 9c5d5208b9
commit bf4ccf185c
10 changed files with 79 additions and 61 deletions

View file

@ -14,21 +14,21 @@ import java.awt.image.BufferedImage;
*/
public class DialogContainer extends JPanel {
private static int X_OFFSET = 30;
private static int Y_OFFSET = 30;
private BufferedImage shadow = null;
private static final int X_OFFSET = 30;
private static final int Y_OFFSET = 30;
private final BufferedImage shadow = null;
//private DialogManager.MTGDialogs dialogType;
//private DlgParams params;
private Color backgroundColor = new Color(0, 255, 255, 60);
private int alpha = 50;
private boolean isGradient = false;
private TexturePaint tp = null;
private Image gradient = null;
private final boolean isGradient = false;
private final TexturePaint tp = null;
private final Image gradient = null;
private BufferedImage b;
private boolean drawContainer = true;
private DialogManager.MTGDialogs dialogType;
private final DialogManager.MTGDialogs dialogType;
public DialogContainer(DialogManager.MTGDialogs dialogType, DlgParams params) {
setOpaque(false);

View file

@ -36,8 +36,8 @@ public class ChoiceDialog extends IDialogPanel {
private JButton jButtonSort = null;
private CardsView cards;
private UUID gameId;
private final CardsView cards;
private final UUID gameId;
private int page = 1;
private int maxPages;
@ -48,12 +48,14 @@ public class ChoiceDialog extends IDialogPanel {
private boolean isChooseAbility = false;
private boolean isCancelStopsPlaying = true;
private DlgParams params;
private final DlgParams params;
private String title;
private final String title;
/**
* This is the default constructor
* @param params
* @param title
*/
public ChoiceDialog(DlgParams params, String title) {
super(params);