set Max Width
Sets the maximum width for the floating pane in a specific mode.
This method allows you to define a custom maximum width for the floating pane when it is in a particular FloatingPaneMode (e.g., floating, docked).
Parameters
mode
The FloatingPaneMode for which to set the maximum width.
width
The maximum width in pixels, or null
to remove a previously set custom maximum width.