Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法使在特定程序中创建的所有布局的组件之间的默认间隙为 0?
有什么办法吗?如果没有,是否至少有一种方法可以在布局级别(new MigLayout(“gaptozero”);)?
尝试设置MigLayout("insets 0");
MigLayout("insets 0");
编辑:
要修复差距(见评论),你可以简单地写:MigLayout("gap 0");或者,gapx 和 gapy。
MigLayout("gap 0");
这一切都来自: http: //migcalendar.com/miglayout/cheatsheet.html