static <A extends JComponent> A setDoubleBuffered(A c, bool b default true) {
  swing { c?.setDoubleBuffered(b); }
  ret c;
}