English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Setting up a Java game called paddleship, same as battleship and having trouble setting the coordinates for row and column using if then statements. Definitely would appreciate it.

2006-10-12 18:05:02 · 2 answers · asked by azhi_saleem 1 in Computers & Internet Programming & Design

2 answers

Instead of using a 2D array, create a JTable object and implement the cell renderer to make your job easier.

2006-10-14 01:24:19 · answer #1 · answered by Pandian 3 · 0 0

i'm not really sure what your trying to do, some sample code would help. But my opnion on how to do this is a 5x5 2D array. This makes the grid easy to create and change.

2006-10-12 19:15:29 · answer #2 · answered by Brady 3 · 0 0

fedest.com, questions and answers