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.

Recommended Answers

All 2 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.