Java Swing #2 'Grid Layout & Action Listener' Tutorial

preview_player
Показать описание
In this tutorial I'll be showing you how to make a basic tictactoe game using gridlayout and actionlisteners

Source Code
Рекомендации по теме
Комментарии
Автор

Excellent tutorials so far. I've been looking for a GUI introduction just like this -- you delivered! Thanks.

GiulianoConteDrums
Автор

I totally love your tutorials. They're the best around for game programming. Thanks a lot. I just have a request that if you could speak a little louder and clearer. Thanks a lot in advance. Keep up the work!

Daynozaurs
Автор

...apply what I learned to other languages and make better quality games overall. You taught me how to use arrays and how to write more efficient, cleaner code. Right now I am working on a voxel engine in C++ and I am always interested in new ways to optimize apps or things to avoid in programs. A video on clean code or common mistakes would very interesting.

nathanross
Автор

I am using Eclipse to develop your TTT program and I cannot get it to run. The statement X = new produces an I know the files are there because I am able to access text files in the same folder.

FrankBreen
Автор

Could you maybe extend this tutorial to play against an opponent over a network?

KyleBridenstine
Автор

You could have introduced a parameter to the XOButton object, passing it from the main method, to indicate which player has the turn at a particular time, to avoid having to click twice to set a circle.

chrism
Автор

First of all Thank's a lot. You have great tutorials and have helped me ton's. My only suggestion? Any future ones please take the time to heavily comment the source code. You go so fast in the video it would really help people to follow along and understand what is happening. But again Thank You So Much.

Flatwoodsdad
Автор

I can tell that you put a lot of effort in these videos and they would be very useful if I was learning java, however I am not. I always make sure to leave a like but I cannot say that I personally enjoy them. I would like to see more gamemaker multipurpose videos. I found your gamemaker physics tutorial very gamemaker specific as I do not program in gamemaker.

I miss your videos where you would show how to do something complex in simple steps like inventories or terrain. I miss being able to..

nathanross
Автор

At around 2:59 he says something about not representing references from a static context. Can anyone tell me what that means or what he is trying to point out?

qaipak
Автор

yes that's an ongoing thing. I'm working on speaking clearer. Thank you for the support :)

SynforgeTutorials
Автор

I'm a little bit confused to the button. I don't have any background about java programming but I have to make any games using eclipse. Um, where is the declaration to the size of the button?

zaralynzalmoguera
Автор

Where did you store your images so that you could access them like that?

AndrewStewart_Hell_Yeah
Автор

I have to look somewhere else to find out where to load the image folder.

ofnotandi
Автор

what would cause a
Exception in thread "AWT-EventQueue-0"
when clicking on a card? the icon changes correctly and everything, and the only other quirk is that the buttons are invisible until you hover over them

dreadeye
Автор

Can you make a tutorial on using a mouse adapter for a JLabel array? I'm trying to change the colour of label in a 3x3 grid using mousePressed in mouse listeners.

nanoic
Автор

How can I add images to a 3x3 grid and press a button to let the program know I want to do this and confirming my choice?

nanoic
Автор

Peter, I'm trying to write the code to solve a ken-ken puzzle. On clicking the button, I want it to take the integer input from me. I'm not able to create the puzzle interface. After that, I can think about the logic, like you said.Any suggestion would be a great help. Thanks!

bvslalithya
Автор

i am getting a nullpointerexception how to fix it ?

zohaib
Автор

I'm getting nothing on my JFrame. The GridLayout isn't showing.

MrVex
Автор

but like when i do it it says png cannot be resolved or is not a field (in eclipse)

abcd-locr
visit shbcf.ru