how to reffer to a class in my project (Java)?
I have a few classes in my java project. The main class is Auction. In every class I've made the first line is:
package myprojects.auction;
The main class, Auction extends Frame. Now I am creating a class Bidder that extends JDialog. According to the Java API, one of the constructors for JDialog has the following arguments: (JFrame parent, String title, Boolean mode).
In my constructor I want to refer to Auction as the first argument (because Auction extends JFrame). Here is what I did:
public class Bidder extends JDialog {
public Bidder() {
super(myprojects.auction. Auction, "enter bid", false);
......
But I got compile error: cannot find symbol: auction
(notice the small 'a' in auction )
If I try :
super(Auction, "enter bid", false);
then it cannot find symbol: Auction.
What am I doing wrong?
|