Trying to set up the UI using Netbeans’ visual UI builder, but I want to add the action Listeners and action Events at a later time; After all components have been initialized. Strangely, all buttons are sized properly until I add an action listener to them. Notice the buttons that have abnormal height? Those are the ones I added action events to. The code for this can be found HERE. I want the images to maintain their original height before and after adding the actions.

Trying to set up the UI using Netbeans’ visual UI builder, but I want
Share
Update: Changing
To
Seems to solve the issue.