I want to know if I had a component,for example,button how to able it to resize if parent component is resized by user?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is handled by the layout manager of the container. A button at the center of a BorderLayout will resize in all directions, for example.
Read the Swing tutorial on layout managers.