views:

138

answers:

2

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?

+4  A: 

You mean setTitle?

eed3si9n
This is it - thanks! I was searching using the Windows "caption" term and wasn't getting anywhere. Your hint helped me improve the usability of the jpeg orientation setter jeo. It is available online as open source at http://www.spinellis.gr/blog/20090507/
Diomidis Spinellis
A: 

JFrame has a setTitle() method which will set the title of the window.

akf