File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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: 4523
    
    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: 4523
    
    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
Marshal

Joined: Mar 22, 2005
Posts: 41181
    
  45
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.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: for Applet
 
Similar Threads
applet gui issues
Some of you are experts this could be your next problem!
Ordering of AlphaNumeric No. in ascending Order
scrollbars in a canvas-urgent
help me in this program pls. to calculat GPA