RFR: 4811995: BorderLayout does not respect minimum size of its components

Jeremy Wood duke at openjdk.org
Mon Apr 21 21:31:41 UTC 2025


On Mon, 21 Apr 2025 20:49:34 GMT, Alan Snyder <javalists at cbfiddle.com> wrote:

> But it would not be dangerous as a new Layout Manager, would it?
> Or it could go in a third party library.

Correct. If anyone wants it, or a draft of it, feel free to email me. Someday if I need it I'll add it to my personal repo.

(Personally (being new-ish to this group) I try to limit my OpenJDK PRs to fixes, but not enhancements.)

To be fair: this PR is still a little invasive. It's possible some UIs are relying on the legacy behavior as-is. But IMO assigning a negative width/height is a significant bug worth fixing.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24772#issuecomment-2819543295


More information about the client-libs-dev mailing list