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.
Your requirement seems to be a relatively simple use of BorderLayout.
The code snippet below assumes the panel are being added to a JFrame. Hence the getContentPane() calls.
Specify the maximum, minimum and preferred width of jPanel1 to be 60 px. Leave JPanel2 to “float”.
If separation of the panes is required add a third pane of fixed width (say 5 px)