I am using a gridlayout with several buttons placed in a panel and I need a button placed in the middle to disappear. However, when I set the setVisible method to false, there is a space in between the buttons and I need the remaining buttons below to move up to cover the space done by the method. This is similar to the visibility mode GONE in android. How do I do this in Java?
Share
The MigLayout layout manager supports a
hidemodedirective that does exactly this.