Need help with GUI (swing)

This is my first project where I use swing and I need help making the textArea in bankStatementInterface larger in y axis. I've attached images with relevant code and with the interface.
No description
No description
No description
No description
8 Replies
JavaBot
JavaBot4w ago
This post has been reserved for your question.
Hey @AdelinV2! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
dan1st
dan1st4w ago
Try adding a minimum height to the textArea
AdelinV2
AdelinV2OP4w ago
I did this
textArea.setMinimumSize(new Dimension(300,100));
textArea.setMinimumSize(new Dimension(300,100));
but still not working
dan1st
dan1st4w ago
and setting a minimum size on the scroll pane did nothing either? Why only 100?
AdelinV2
AdelinV2OP4w ago
textArea.setMinimumSize(new Dimension(500,500));

scrollPane.setMaximumSize(new Dimension(500,500));
textArea.setMinimumSize(new Dimension(500,500));

scrollPane.setMaximumSize(new Dimension(500,500));
still looks the same Wait, my bad, I've set maximmsize Its working, thank you @dan1st | Daniel
JavaBot
JavaBot4w ago
If you are finished with your post, please close it. If you are not, please ignore this message. Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
JavaBot
JavaBot4w ago
Post Closed
This post has been closed by <@244412270803681281>.
Want results from more Discord servers?
Add your server