I have to call a method inside the java swing actionperformed method. But when I click the button nothing happens. How to solve this problem?
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt)
{
hellocalled();
}
}
You need to add action listener to your button in order to respond to click event: