I want know difference between fallowing code
Jframe myframe= new Jframe();
myframe.add(new jbutton());
And
Contentpane cp=Myframe.getcontentpane();
cup.add(new jbutton());
I want know difference between fallowing code
Jframe myframe= new Jframe();
myframe.add(new jbutton());
And
Contentpane cp=Myframe.getcontentpane();
cup.add(new jbutton());