About box

AS1/2: Fixed important decompiling bug
This commit is contained in:
Jindra Pet��k
2011-07-30 14:14:27 +02:00
parent c4a5d74377
commit bce40e6880
7 changed files with 264 additions and 5 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ public class View {
*
* @param f Frame to set icon in
*/
public static void setWindowIcon(Frame f) {
public static void setWindowIcon(Window f) {
java.util.List<Image> images = new ArrayList<Image>();
images.add(loadImage("com/jpexs/asdec/gui/graphics/icon16.png"));
images.add(loadImage("com/jpexs/asdec/gui/graphics/icon32.png"));
@@ -74,7 +74,7 @@ public class View {
*
* @param f Frame to center on the screen
*/
public static void centerScreen(Frame f) {
public static void centerScreen(Window f) {
Dimension dim = f.getToolkit().getScreenSize();
Rectangle abounds = f.getBounds();
f.setLocation((dim.width - abounds.width) / 2,