Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnstosh/2515150 to your computer and use it in GitHub Desktop.
Save johnstosh/2515150 to your computer and use it in GitHub Desktop.
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
=> $s.setVisible(false)
;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment