@Override
	public void actionPerformed(ActionEvent e) {
		if(e.getSource() == this.executeBtn) {			
			Cursor normal = this.getCursor();

			final JDialog d = new JDialog();  
			JPanel p1 = new JPanel(new GridBagLayout());  
			p1.add(new JLabel("Please Wait..."), new GridBagConstraints());  
			d.getContentPane().add(p1);  
			d.setSize(150, 75);  
			d.setLocationRelativeTo(this.getFrame());  
			d.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);  
			d.setModalityType(Dialog.ModalityType.DOCUMENT_MODAL);
			d.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
			d.setUndecorated(true);
			
			try {
				this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
		        
		        Thread t = new Thread() {  
					public void run() {
						try {
							BaseMethodPanel.this.execute();
							SwingUtilities.invokeLater(new Runnable(){
						        public void run() {  
						        	d.dispose();  
						        }
							});
						} catch (Exception ex) {
							logger.error("Error executing query!!.", ex);
						}
					}
				};
				
				t.setName("Query-Thread");
				t.start();
		        d.setVisible(true);				
			} catch (Exception e1) {
				logger.error("Error executing query.", e1);
	        	d.dispose();  
			} finally {
				this.setCursor(normal);
			}
		}
	}