[Picross-commit] SF.net SVN: picross: [31] trunk/src/picross
Status: Pre-Alpha
Brought to you by:
yvan_norsa
From: <yva...@us...> - 2007-06-11 10:43:25
|
Revision: 31 http://picross.svn.sourceforge.net/picross/?rev=31&view=rev Author: yvan_norsa Date: 2007-06-11 03:43:20 -0700 (Mon, 11 Jun 2007) Log Message: ----------- fixed a little glitch Modified Paths: -------------- trunk/src/picross/PicrossMediator.java trunk/src/picross/PicrossUI.java trunk/src/picross/app/PicrossAppUI.java trunk/src/picross/applet/PicrossApplet.java trunk/src/picross/grid/GridUI.java Modified: trunk/src/picross/PicrossMediator.java =================================================================== --- trunk/src/picross/PicrossMediator.java 2007-06-11 10:38:34 UTC (rev 30) +++ trunk/src/picross/PicrossMediator.java 2007-06-11 10:43:20 UTC (rev 31) @@ -89,8 +89,8 @@ mediator.addSimpleListener(this); - //this.view = new PicrossUI(mediator.getView()); this.view.setContent(mediator.getView()); + this.view.showUI(); } /*** Method overloaded from the Mediateur class ***/ Modified: trunk/src/picross/PicrossUI.java =================================================================== --- trunk/src/picross/PicrossUI.java 2007-06-11 10:38:34 UTC (rev 30) +++ trunk/src/picross/PicrossUI.java 2007-06-11 10:43:20 UTC (rev 31) @@ -69,6 +69,9 @@ */ String getMainMenuClass(); + /** Method called when the application is displayed. */ + void showUI(); + /** Method called when the application exits. */ void exit(); } Modified: trunk/src/picross/app/PicrossAppUI.java =================================================================== --- trunk/src/picross/app/PicrossAppUI.java 2007-06-11 10:38:34 UTC (rev 30) +++ trunk/src/picross/app/PicrossAppUI.java 2007-06-11 10:43:20 UTC (rev 31) @@ -60,7 +60,7 @@ super("Picross"); this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); - this.setVisible(true); + //this.setVisible(true); } /*** Methods implanted from the interface PicrossUI ***/ @@ -83,6 +83,11 @@ } /** {@inheritDoc} */ + public void showUI() { + this.setVisible(true); + } + + /** {@inheritDoc} */ public void exit() { this.dispose(); } Modified: trunk/src/picross/applet/PicrossApplet.java =================================================================== --- trunk/src/picross/applet/PicrossApplet.java 2007-06-11 10:38:34 UTC (rev 30) +++ trunk/src/picross/applet/PicrossApplet.java 2007-06-11 10:43:20 UTC (rev 31) @@ -92,7 +92,9 @@ } /** {@inheritDoc} */ - public void exit() { - } + public void showUI() { } + + /** {@inheritDoc} */ + public void exit() { } } Modified: trunk/src/picross/grid/GridUI.java =================================================================== --- trunk/src/picross/grid/GridUI.java 2007-06-11 10:38:34 UTC (rev 30) +++ trunk/src/picross/grid/GridUI.java 2007-06-11 10:43:20 UTC (rev 31) @@ -381,10 +381,9 @@ this.rightBoundary, this.topBoundary)); - int boxWidth = GridUI.BLOCK_WIDTH * GridUI.BOX_WIDTH; int boxHeight = GridUI.BLOCK_HEIGHT * GridUI.BOX_HEIGHT; - + int i = 1; int currentY = this.topBoundary + boxHeight; @@ -397,7 +396,7 @@ currentY += boxHeight; i += GridUI.BLOCK_HEIGHT; } - + i = 1; int currentX = this.leftBoundary + boxWidth; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |