I developed a small desktop application in Net Beans. When i run my application there appears no title in the Windows Title bar. Is there anyway through which i specify some title which later on will appear in Windows title bar? Following is my Main method
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new MyJFrame().setVisible(true);
}
});
}
You can set the title bar at JFrame initialization time like this
or you can create public method for your custom class like
and use like this way