I'm trying to do the following:

private void butonActionPerformed(java.awt.event.ActionEvent evt) {                                      
            buton.setLocation(500, 500);
    }

but it doesn't do anything.

Please help.

you may need to call validate() and repaint() methods on the component where your button resides.

It looks like that the problem was in my logical structure of my original application. My if statements where incorrect from a logical point of view. Sorry :$ :icon_redface: . The code works fine, after all.