Layout Manager, Single component
Hello all, I am new to this community and fair new to Java programming. I am reading about layout managers and used several layout managers in order to show a single component in a JPanel, eg a button. So far all i have found/managed to do is to make this button appear in a specific position leaving the rest of the space unoccupied.
What I want to do is to show this button in the panel but occupy all available space as well as be resizable to the panel. Panel gets bigger? Button still occupies full size of it.
Any help is appreciated, thank you.