New features and improvements
- Modal dialog and Toast
- Add new option
heavyWeight
by defaultfalse
if set to true, the modal and toast will show by createJWindow
- Add new layout option
relativeToOwner
by defaultfalse
if set to true, the location modal and toast will show
relative to the owner component - Add new option
overflowAlignmentAuto
work when component overflow the container- if
ture
the component adjust to center of container - if
false
the location value<0.5f
adjust to the left, location value>0.5f
adjust to the right, location
value0.5f
adjust center- modal:
true
by default - toast:
false
by default
- modal:
- if
- Add new option
- Modal dialog
- Add new layout option
relativeToOwnerType
(requiresrelativeToOwner
=true
) with 3 types:RELATIVE_CONTAINED
: modal and background are confined to the owner's bounds and track the owner's
visibility (default
)RELATIVE_GLOBAL
: background spans the entire window and does not track the owner's visibilityRELATIVE_BOUNDLESS
: background covers the owner, but the modal can extend outside the owner. Tracks owner's
visibility. (requiresheavyWeight
=true
)
- Add new layout option
backgroundPadding
to padding the background. by defaultinsets(0,0,0,0)
- Add new layout option
movable
by defaultfalse
if set to true, the modal can move by mouse drag
- Add new layout option
- Toast
- Add new layout option
relativeToOwnerType
(requiresrelativeToOwner
=true
) with 3 types:RELATIVE_CONTAINED
: toast is confined to the owner's bounds and tracks the owner's visibility. (default
)RELATIVE_GLOBAL
: toast spans the entire window and does not track the owner's visibilityRELATIVE_BOUNDLESS
: toast can extend outside the owner's bounds and tracks the owner's visibility
- Add new layout option
Fixed bugs
- Modal dialog
- Fixed
borderWidth
- fixed border not paint when value
1
and round border is active - fixed border not paint when value
0.5f
- fixed border not paint when value
- Fixed
What's Changed
- Demo: create dashboard form with jfree chart by @DJ-Raven in #23
- Modal and Toast: add
heavyWeight
andrelativeToOwner
option by @DJ-Raven in #24 - Modal and Toast: add
relativeToOwnerType
option by @DJ-Raven in #26 - Modal: add
movable
option andoverflowAlignmentAuto
by @DJ-Raven in #27
Full Changelog: v2.2.0...v2.3.0