This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Applets and the fly likes for Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "for Applet" Watch "for Applet" New topic
Author

for Applet

munjal upadhyay
Ranch Hand

Joined: Sep 18, 2010
Posts: 69

Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4684
    
    5

You code runs as expected for me.

Step through your if statements -- what background is set when cb1 is selected and cb2 isn't?


luck, db
There are no new questions, but there may be new answers.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4684
    
    5

Additionally, never compare booleans to true or false.

edit And do you have a valid reason for using AWT and not the more modern Swing?
munjal upadhyay
Ranch Hand

Joined: Sep 18, 2010
Posts: 69

Darryl Burke wrote:You code runs as expected for me.

Step through your if statements -- what background is set when cb1 is selected and cb2 isn't?




It must be red..
and here , the output is white..
munjal upadhyay
Ranch Hand

Joined: Sep 18, 2010
Posts: 69

Darryl Burke wrote:Additionally, never compare booleans to true or false.

edit And do you have a valid reason for using AWT and not the more modern Swing?


I want to know all the inBuilt method like getState(), setState() ....
will you please send me the links.
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
munjal upadhyay wrote:I want to know all the inBuilt method like getState(), setState() ....
will you please send me the links.

Are you asking for the javadocs? Those are easily found through by searching for them.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: for Applet