Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 23rd, 2012  |  syntax: Java  |  size: 0.30 KB  |  views: 51  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. public class ToolkitAntiBeep extends sun.awt.windows.WToolkit {
  2.     @Override
  3.     public void beep() {
  4.         //TODO no esta funcionando
  5.         JOptionPane.showConfirmDialog(null, "Areee");
  6.     }
  7. }
  8.  
  9. //And adding to constructor
  10. System.setProperty("awt.toolkit", "presentacion.comun.ToolkitAntiBeep");