I'm new to Java and now am learning building GUI using AWT (not Swing!)
So, I have created:
- A
Frame(let it call f). A class, which creates me a
CheckBoxin thePanelin constructor:public class CheckBoxing extends Component{ public CheckBoxing( Panel p) { ... } }
Is there a field in Frame which I can use to initialize an exemplar of CheckBoxing? I know, I can simply rewrite CheckBoxing to accept Frame instead of Panel, or use JFrame, but this will ruin the idea I'm trying to implement.