I define a button as follows. I see the correct hover behavior and the correct change when pressed (BlueButtonPressed appears) I do not see the button revert to the first image when the mouse button is released. I need to move the mouse out of the button boundaries fro the image to reset propery
1 - Woodbtn1 is displayed
2 - the Hover Woddbtn2 is displayed on mouse over
3 - BlueButtonPressed.png is displayed on press
4 - BlueButtonPressed.png continues to be displayed after mouse release.
Button leftButton = new Button(70,32, 2, “”, new Font(“Monospace”,
Font.BOLD, 24), new Color3f(1, 1, 1), “images/Woodbtn1.gif”,
“images/Woodbtn2.gif”, “HUD/BlueButtonPressed.png”, true);
leftButton.setActionCommand(“lb”);
leftButton.addActionListener(this);