Skip to content

Instantly share code, notes, and snippets.

@johnstosh
johnstosh / Change show() and hide() into setVisible().hint
Created April 28, 2012 02:17
Java NetBeans - (Jackpot) refactoring -- Change show() and hide() into setVisible()
<!description="Change .show() and .hide() calls
on Dialog and JDialog
into .setVisible(true) and .setVisible(false) calls, respectively.">
$s.show() :: $s instanceof java.awt.Dialog
=> $s.setVisible(true)
;;
$s.hide() :: $s instanceof java.awt.Dialog