static A setFrameTitle(A c, S title) {
Frame f = getAWTFrame(c);
if (f == null)
showFrame(title, c);
else
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;
}