From 525cffcf5a9c64773ee353154b9b27db03795577 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 31 Jan 2007 00:50:18 +0000 Subject: [PATCH] Config -> PrefsConfig; avoid matching a deprecated method. git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@162 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../com/threerings/puzzle/client/PuzzleBoardView.java | 3 ++- .../com/threerings/puzzle/client/PuzzlePrefs.java | 11 +++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/java/com/threerings/puzzle/client/PuzzleBoardView.java b/src/java/com/threerings/puzzle/client/PuzzleBoardView.java index 4f40baa8..bf04b49d 100644 --- a/src/java/com/threerings/puzzle/client/PuzzleBoardView.java +++ b/src/java/com/threerings/puzzle/client/PuzzleBoardView.java @@ -22,6 +22,7 @@ package com.threerings.puzzle.client; import java.awt.Color; +import java.awt.Component; import java.awt.Dimension; import java.awt.Font; import java.awt.Graphics2D; @@ -272,7 +273,7 @@ public abstract class PuzzleBoardView extends VirtualMediaPanel String score, Color color, Font font, int x, int y) { return createScoreAnimation( - ScoreAnimation.createLabel(score, color, font, this), x, y); + ScoreAnimation.createLabel(score, color, font, (Component)this), x, y); } /** diff --git a/src/java/com/threerings/puzzle/client/PuzzlePrefs.java b/src/java/com/threerings/puzzle/client/PuzzlePrefs.java index 3d112c14..7840880e 100644 --- a/src/java/com/threerings/puzzle/client/PuzzlePrefs.java +++ b/src/java/com/threerings/puzzle/client/PuzzlePrefs.java @@ -21,15 +21,14 @@ package com.threerings.puzzle.client; -import com.samskivert.util.Config; +import com.samskivert.util.PrefsConfig; /** - * Provides access to runtime configuration parameters for this package - * and its subpackages. + * Provides access to runtime configuration parameters for this package and its subpackages. */ public class PuzzlePrefs { - /** Used to load our preferences from a properties file and map them - * to the persistent Java preferences repository. */ - public static Config config = new Config("rsrc/config/puzzle"); + /** Used to load our preferences from a properties file and map them to the persistent Java + * preferences repository. */ + public static PrefsConfig config = new PrefsConfig("rsrc/config/puzzle"); }