frameTextArea.append("\n B. \n");
frameTextArea.append(" StandardColors.RED :\t"
+ StandardColors.RED + "\t"
+ deObjectR.getExtColor() );
}
//--------------------------------------main-------------------------------------
public static void main(String args[])
{
//#2 Create an instance of the class
PolyTestViewIAC ptView = new PolyTestViewIAC();
//#3 Use class instance to call the window listener
ptView.addWindowListener(
new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
}//end windowClosing method definition
}//end WindowAdapter class definition
); //end of call to addWindowListener
}//end main
}//end class
This is the complete error I received while working in DOS Command Prompt
"Getting the following error:
“Exception in thread ”main” java.lang.IllegalArgumentException: adding container’s parent to itself
At java.awt.container.checkAddToSelf<Unknown Source>
At java.awt.container.addImpl<Unknown>
At java.awt.container.add<Unknown Source>
At PolyTestViewIAC.init<PolyTestViewIAC.java:49>
At PolyTestViewIAC.<init><PolyTestViewIAC.java:31>
At PolyTestViewIAC.main<PolyTestViewIAC.java:90>"
Bookmarks