Simple question here. How do I change the title of a JPanel, for exmple
http://docs.oracle.com/javase/tutorial/figures/uiswing/components/ConverterColored.png
change the text “converter” here to something else?
Thanks in advance!
EDIT: sorry, it was a JPanel!
First of all, the link you provided contains a
JFramenotJPanel.Second, pass the title as a parameter to the
JFrameconstructor once you create itJFrame(String title):or use the method
setTitle(String title)inherited from classFrame: