Yugendra Reddy Guvvala

Greenhorn
+ Follow
since Aug 06, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Yugendra Reddy Guvvala

my prob lem is solved but how to set teh colore with rgb values
17 years ago
I have been programming in anetbeans IDE when ever i write the error comes saying

cannot find symbol
symbol:method setBackgroud(java.awt.color)
location javax.swing.jbutton[]

teh method setBackground()is underlined
shuld i include any other packages ie import any other than

javax.swing.*
java.awt.*
17 years ago
I have been devoloping a TIC TAC TOE applicaton i know how to make the button disabled by marking the users or computers mark but i dont know how to change the colore of the button when it is clicked


buttons.setText("O");
buttons.setEnabled(false);

this is how i have been doing that
i tried


buttons.setBackground("color.red")

but it says setbackground function not found in javax.swings

please let me know do i have to import any other packages other than

javax.swing.*
java.awt.*
17 years ago
Actually I have developed the TIC TAC TOE application in which user plays with computer my question is
I want to have a window displayed first asking whether the user have to play first or the computer. Which should have 2 radio buttons and one yes button and one cancel button and the window should return either user or computer to the program then the game should start accordingly
I know how to do it in HTML but not in JAVA I tried some radio button examples but could not find current answer relevant to my question
17 years ago
I am devoloping a Tic Tac Toe game which plays Computer Vs User but i dont know how i would design a radio button which makes a choice who will play first
17 years ago
I am sorry i was doing it in java so i will post it in teh java form
thanks
Sorry i ment Java by J i am devoloping code in java so i need to have a input window which have a string which says "choose the User Or computer to play first" then 2 radio buttons labeled computer and User if the computer is selected then the value returned shuld be computer or user as selected on the window so that game can be started with it ?
I know how to code it in HTML but i dont know how to do it in java........


thanks
I am devoloping a Tic Tac Toe game which plays Computer Vs User but i dont know how i would design a radio button which makes a choice who will play first
i just checked wether the client have entered all the data into required field or not and now am validating teh entered data so i want to know how to check for SSN DATE PHONE NUMBER AND All
how to validate a SSN number phonenumber and date in the form
client side validation
i wnat to validate my form and report if the required fields are not answered or in wrong format so please any one tell me how to report the errors in the same page without writing a new page for that i dont want a popup alert window i want to list on the top of teh page all the fields that were wrong?