I have a jbutton which performs a function when clicked on by mouse. For doing this programatically I have this other function
void clickButton(){
backButton.doClick();
}
When I run the clickButton() function I can see the backButton being pressed on the jFrame but the function associated with backButton does not happen. When I click on it with mouse it functions. what am I doing wrong here?