I want my program to change its window's caption in response to various user actions. Does the Java SE platform offer a portable way to change the main window's caption at runtime, or do I have to resort to native API JNI calls?
你的意思是setTitle
?
JFrame有一个setTitle()方法,它将设置窗口的标题。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.