Saturday, 17 August 2013

Is there a way to change ActionListeners from public void to something else?

Is there a way to change ActionListeners from public void to something else?

I'm trying to run a public static int when a JButton is pressed, but I
cant run it from the public void. Is there any way I can get around that?
btnGoMining.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
Mining(randomOre, oresGet, mineTime, Inventory);
}
});

No comments:

Post a Comment