File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes CandleApplet errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "CandleApplet errors" Watch "CandleApplet errors" New topic
Author

CandleApplet errors

Joniela Geldenhuys
Greenhorn

Joined: Aug 24, 2011
Posts: 10
Hey

I've just finished coding this project and now they give me errors and I don't know what to do to fix it.
Can somebody please help me??


Errors:
incompatible types
found: java.awt.CheckboxGroup
required: java.awt.Checkbox

Cannot find symbol
symbol: Constructor checkbox(java.lang.string,boolean,java.awt.checkbox)
location: class java.awt.checkbox
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10519
    
    9

In future, while posting code, please UseCodeTags. I have edited your post and added them this time . As you can see it makes the code much more readable and easier to understand.

Errors:
incompatible types
found: java.awt.CheckboxGroup
required: java.awt.Checkbox

Cannot find symbol
symbol: Constructor checkbox(java.lang.string,boolean,java.awt.checkbox)
location: class java.awt.checkbox

Notice anything wrong here?


On a side note, why are you using AWT? You should be using Swing.
Swing offers direct replacement classes for AWT e.g. Applet <=>JApplet CheckBox<=>JCheckBox


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Joniela Geldenhuys
Greenhorn

Joined: Aug 24, 2011
Posts: 10
thanks the book said I must use AWT! it is a stupid book and the college I'm at is useless. Ok so I fixed the mistake I made and now they give me 1 more error:

cannot find symbol
symbol: variable shippingGroup
location: class CandleApplet
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10519
    
    9

Maybe it is an old book, when Swing had not yet evolved.

You should pay close attention to the compiler. The compiler is your friend. Not only does it tell you what the problem is, it also tells you the line number where the problem is. I am sure the compiler told you more than just
cannot find symbol
symbol: variable shippingGroup
location: class CandleApplet

I would recommend paying attention to what the compiler tells you.
Hint: Check your spelling
Joniela Geldenhuys
Greenhorn

Joined: Aug 24, 2011
Posts: 10
haha stupid me!! Thanks it is working!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CandleApplet errors