Skip to content

v2.3.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 21 Jan 16:00
· 12 commits to main since this release

New features and improvements

  • Modal dialog and Toast
    • Add new option heavyWeight by default false if set to true, the modal and toast will show by create JWindow
    • Add new layout option relativeToOwner by default false 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
        value 0.5f adjust center
        • modal: true by default
        • toast: false by default
  • Modal dialog
    • Add new layout option relativeToOwnerType (requires relativeToOwner = 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 visibility
      • RELATIVE_BOUNDLESS: background covers the owner, but the modal can extend outside the owner. Tracks owner's
        visibility. (requires heavyWeight = true)
    • Add new layout option backgroundPadding to padding the background. by default insets(0,0,0,0)
    • Add new layout option movable by default false if set to true, the modal can move by mouse drag
  • Toast
    • Add new layout option relativeToOwnerType (requires relativeToOwner = 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 visibility
      • RELATIVE_BOUNDLESS: toast can extend outside the owner's bounds and tracks the owner's visibility

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

What's Changed

  • Demo: create dashboard form with jfree chart by @DJ-Raven in #23
  • Modal and Toast: add heavyWeight and relativeToOwner option by @DJ-Raven in #24
  • Modal and Toast: add relativeToOwnerType option by @DJ-Raven in #26
  • Modal: add movable option and overflowAlignmentAuto by @DJ-Raven in #27

Full Changelog: v2.2.0...v2.3.0