@Override
        public void keyPressed(KeyEvent e) {
            if(e.keyCode == 13){
                try {
                    value = Long.parseLong(text.getText());    
                    close();
                  } catch (Exception ex) {

                  }
            }
        }