如何处理jscrollpane调整jpanels的大小

如何处理jscrollpane调整jpanels的大小

本文介绍了Java swing - 如何处理jscrollpane调整jpanels的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 问候, 我尝试在堆栈溢出时问这个问题,但最近该网站变得非常狡猾(但最糟糕的是,无益)。所以我要尝试其他地方(比如这里)。这是一个问题 - java - Set JScrollPane上的大小,多个面板调整窗口最大化面板大小 - Stack Overflow [ ^ ] 这是我的第一次java swing项目,我正在努力学习处理这样的问题。 我尝试过的事情: 除了我已在问题中列出的内容之外,我还尝试为gridbaglayout列设置默认大小宽度(因此组合框不需要保留在他们自己的JPanels隐藏时保持大小)。这个问题是大小会随机调整大小,使其无法管理。Greetings,I tried asking this question on stack overflow, but lately that website has been getting very snippy (but worst of all, unhelpful). So I am going to try other places (like here). Here is the question - java - Set Size on JScrollPane with multiple panels resizes panels on window maximize - Stack Overflow[^]This is my first java swing project, and I'm trying to learn as much as I can about handling issues like this.What I have tried:Aside from the things I have already listed in the question, I've also tried setting default size widths for the gridbaglayout columns (so the combo boxes don't need to remain in their own JPanels when hidden to keep the size). The issue with this was the size would resize at random times, making it unmanageable.推荐答案 这篇关于Java swing - 如何处理jscrollpane调整jpanels的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-05 13:27