Java Chess Programming Video #33 The GUI (Part V)

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

Chess Code Repository :

IDE:

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

If you are using eclipse, create new folder after a right click on the project, then go to the Piece folder on your desktop, copy all the pictures and paste it in the folder you created in eclipse [assuming the name of the folder is pieces] :
dafaultPieceImagePath = "pieces/";

tiestoLouver
Автор

Hi i was wondering how you made your pawns move. i have every piece moving except my pawns. REALLY need your help asap

idkidk
Автор

Thank you for the series! I saw that you responded to a comment from a few days ago and decided to try my luck. I was wondering what TILE_PANEL_DIMENSION did exactly? I tried changing the values passed in and didn't really see a difference in tile size when starting the game up. I was hoping to add a feature where the Piece images resized along with the board whenever I adjusted the window. My first idea was scaling them relative to the tile dimensions but I think I might be missing some info. Either way, I'm looking forward to finishing the rest of the series!

yasindante
Автор

The exception says cant read the file....please help me out

prinstonrebello
Автор

Hey! I have been enjoying following along with the series and I haven’t had any problems until now. I can’t seem to move any pieces. I’ve checked a few things and everything else is working except for that.

pk
Автор

im currently working on a similar course project but i have already a method called assemble pieces in the engine but i dont know how to call it in the gui so can you tell me please how to do it? thanks in advance

tasneemyousef
Автор

for some reason "board" is null so it throws me a nullpointer exception, any ideas on how to fix it? only happens when i invoke "assignTilePieceIcon" method. other than that it generates the board(without pieces) as its supposed to. it just cant print out a board with pieces on it

fujaksss
Автор

Idk if the comment section is still active, but I'm having a problem where I actually have to resize the border in order for the tiles and the pieces to render. When I comment out the assignTilePieceIcon function, i can view the tiles without having to resize the border window. Is the some order to the Java rendering pipeline or something?

jinasasanapita
Автор

i have trouble on reading input file . What should i do

vietanhngo
Автор

Hi Amir,
I've been following your videos. Everything has worked so far, however in this tutorial I am unable to get the pieces to show up. I get this error when I run:

Exception in thread "main"
at
at
at
at
at <5 internal calls>

I can run it if I take out the assignTilePieceIcon method and its variables, which would only bring up the chessboard in its frame with menubar.

The error "at leads to
' in the assignTilePieceIcon method.

The error "at leads to in the constructor of the TilePanel class.

Any ideas on what could be wrong? Any help would be appreciated. Thank you.

kevinkebarra
Автор

Hey sir, i have an ereor thats Cant read input file. why is that my error and how can i fix it?

ruvexeuw
Автор

I'm working on netbeans 8.2 So can you tell me how to add image folder in netbeans. I'm not able to do that

muhammadfahadarshad
Автор

I keep getting "Exception in thread "main"
at
at
at
at
at
and I don't understand why because I followed all of your steps even downloading the pieces from your github.

alinahib
Автор

Hi Amir,
Can you help, i don't know where i can download the pieces.
I tried to download the simple gifs form wikipedia and rename to .gif,
then i followed your video. But i got the error.

datvu
Автор

Hello, my code works but sadly I can figure out why there's only one horizontal line of tiles (so 8 in total). The Pieces are shown right. Only the background is wrong... Any help would be great!!! Stuck on this for a month and about to give up...
Heres my GitHub:

AlpakaAntifa
Автор

if this comment section is still active, i've got a problem where my pieces don't render?

Buxhoo