ive fixed that one last question
JOptionPane.showInputDialog(" welcome");
this statement it displays welcome to the user ryt, now it also allows user to input ,idont want that ,i want it to...
Type: Posts; User: njabulo ngcobo
ive fixed that one last question
JOptionPane.showInputDialog(" welcome");
this statement it displays welcome to the user ryt, now it also allows user to input ,idont want that ,i want it to...
myButton.setEnabled(false);
will this line disable a button from bieng played twice in tic tac toe game
#now i am confused was i suppose to modify the code in the gui builder source code
case "5":
ticTGui.setbutton5Text( "X" );
ticTGui.setbutton5Enabled( false );
right there "cannot fing symbol"
oh yes with regards to the moves bieng made with a single method rather than having nearly duplicate logic for the user and the computer,thats what the assignment want but i thought it would confuse...
man TicTGui is not declared & i code yami le yang casula
yes i want to know "how to add that logic or include it in the GUI?"
here
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tict;
/**
*
hello guys im working on a tic tac toe game wherei am Creating a game in which the user is presented with a three by-
three gui containing the digits 1 through 9. When the user chooses a position...
so i have to code a tic toe game as follows (as shown in screenshot) using netbeans help me im lost
here is a screen shot of this assignment.....2270
my problem is generating numbers randomly and designing GUI
this.....
class TicTacToe
{
public static void main(String [] args)
{
//System.out.println("Welcome! Tic-Tac-Toe is a two player game.");
//System.out.println("Enter player one's name:...
Create a Tic Tac Toe game. In this game, two players alternate placing Xs and Os
into a grid until one player has three matching symbols in a row, either horizontally,
vertically, or diagonally....
hello guys please help
/*1.1 Write a class to do the following:
a. Declare an array called arr1 to contain 10 cells of type integer.
b. Write a method to input 10 numbers into the array...
this is what i tryed
import java.util.*;
public class Marks
{
public double findHi()
{
int Marks=0;
is it possible to find the highest number using for loop ( looking AT number 9a)
9. Write a class called Marks to do the following:
a. Write a method called findHi to input 10 marks. Find and...
now I am confussed
--- Update ---
can you tell me what axactlly do I need to change ,just a clue
//7. Write a class called RandomNumbers to do the following:
//a. Write a method called generate to randomly generate a 1000 numbers in the range [50..100]. Find and return the sum of these...
axactlly CLI please code it for me
UNFORTUNATELLY I do not have it on my laptop but its the test drive that I am confused with
this is my test driver
public class Numbers
{
public static void....
{
//...
it has to be Graphical User Interface and must compile on J GRASP /J CREATOR OR NETBEANS
well I have coded and compiled this application and its runs the problem is test driver I just do not know how to create a menu (the last part in the question)
PLEASE HELP ME THEN