How can I position a JButton under a JTable? What kind of layouts? How? I have a JTable table what is scrollable, and the table is in a frame.
How can I position a JButton under a JTable ? What kind of layouts?
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.
There are many layouts to fulfill this need.
The simplest is using BorderLayout:
If you want this button to be not resized just add
JPaneltocontentPane. ThisJPanelshould contain your button centered using almost any layout.If you would like to use more sophisticated layout – the best in my opinion is MigLayout