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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -