user interface - Can i get some field like "Panel" from the Frame in java AWT? -


i'm new java , learning building gui using awt (not swing!)

so, have created:

  1. a frame (let call f).
  2. a class, creates me checkbox in panel in constructor:

    public class checkboxing extends component{     public checkboxing( panel p) {          ...         } } 

is there field in frame can use initialize exemplar of checkboxing? know, can rewrite checkboxing accept frame instead of panel, or use jframe, ruin idea i'm trying implement.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -