Java Chess Programming Video #34 The GUI (Part VI)

preview_player
Показать описание

Chess Code Repository :

IDE:

Reading Material:
Рекомендации по теме
Комментарии
Автор

For people using Eclipse, how i got it to work if someone is having trouble:
addMouseListener(new MouseListener() {
@Override
public void mouseClicked(final MouseEvent e) {

sourceTile = null;
destinationTile = null;
humanMovedPiece = null;
} else
if(sourceTile == null){
sourceTile = chessBoard.getTile(tileId);
humanMovedPiece = sourceTile.getPiece();
if(humanMovedPiece == null){
sourceTile = null;
}
}else {
destinationTile = chessBoard.getTile(tileId);
final Move move = null;
}
}
}... (other void methods)

donataskaminskas
Автор

Hi, i am having problems importing the package for the isRight/left mouse button ... May that be me or eclipse ? The IDE is not helping me out ..

lucacollini
Автор

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space... what is the meaning of error?

mustafakaba
Автор

thank youEveryone makes mistakes, man. It doesn't matter I learned a lot

blue_Tarkan
visit shbcf.ru