java - JFrame to Window class -


i want know line code true or there better way? can 1 me?

jframe jframe=new jframe() window window; jframe.setundecorated(true);   window=(window)jframe; //is line true? 

thank you.

yes it's true don't need cast. java.swing.jframe child class of java.awt.window it's ok. , can't find reason why method applied window variable wouldn't apply jframe variable. it's not supposed happen java uses late binding method calls.

try review code, check if import right classes, because think you're misunderstanding something.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -