static A setFrameTitle(A c, fS title) {
final Frame f = getAWTFrame(c);
if (f != null) swing { f.setTitle(title); }
ret c;
}
static A setFrameTitle(S title, A c) {
ret setFrameTitle(c, title);
}
// magically find a field called "frame" in main class :-)
static JFrame setFrameTitle(S title) {
O f = getOpt(mc(), "frame");
if (f instanceof JFrame)
ret setFrameTitle((JFrame) f, title);
ret null;
}