Mage.Tests/pom.xml parent version updated

MageBook.java Strings equality check changed to equals
This commit is contained in:
North 2011-05-09 22:16:08 +03:00
parent 8e1d82dce6
commit de8c30d76d
2 changed files with 5 additions and 2 deletions

View file

@ -90,6 +90,7 @@ public class MageBook extends JComponent {
pageLeft.setBounds(0, 0, 64, 64);
pageLeft.setVisible(false);
pageLeft.setObserver(new Command() {
@Override
public void execute() {
currentPage--;
if (currentPage == 0) {
@ -106,6 +107,7 @@ public class MageBook extends JComponent {
pageRight.setBounds(WIDTH - 2 * LEFT_RIGHT_PAGES_WIDTH - 64, 0, 64, 64);
pageRight.setVisible(false);
pageRight.setObserver(new Command() {
@Override
public void execute() {
currentPage++;
pageLeft.setVisible(true);
@ -162,8 +164,9 @@ public class MageBook extends JComponent {
tab.setBounds(0, y, 39, 120);
final String _set = set;
tab.setObserver(new Command() {
@Override
public void execute() {
if (currentSet != _set || currentPage != 0) {
if (!currentSet.equals(_set) || currentPage != 0) {
AudioManager.playAnotherTab();
currentPage = 0;
currentSet = _set;