0

I having a problem with Java GUI... PLEASE HELP ME!

I try to create a radio button to get the size of my game board; but it didn't work and skipped right away to the other function(that logically creates the game board)... (If you have more notices about my project, I would like to hear) import java.util.Arrays; import java.util.Scanner; public class Rashi { public static int N; //shura public static int M; // amuda public static int r; // random number public static int index=0; public static int []rand;//=new int[Rashi.N*Rashi.M]; public static int [][]logical;//=new int[Rashi.N][Rashi.M]; public static void main(String []args) { int ribe = CenteredFrame.inputR();//CenteredFrame.inputG(); M = ribe; N = ribe; rand=new int[Rashi.N*Rashi.M]; logical=new int[Rashi.N][Rashi.M]; Logical.makeBoard(); CenteredFrame board = new CenteredFrame(); board.show(); } } import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; im

12th Jun 2021, 12:37 PM
OmerA
OmerA - avatar
1 Respuesta