Skip to content

Releases: DJ-Raven/swing-modal-dialog

v2.5.2

16 Aug 15:33

Choose a tag to compare

New features and improvements

  • Toast
    • Add new option interpolator for animator (PR #38)
    • Add new option event for toast event listener (issues #42)
    • ToastStyle Option:
      • add new option showIcon for showing toast icon. by default true
      • add new option closeIcon for change default close icon
  • Other
    • MacOS: heavyWeight windows now support rond border using flatlaf native library (PR #40)

Changed

  • Toast
    • Reduce close button margin size from 5,5,5,5 to 3,3,3,3
  • FlatLaf: update to v3.6.1

Fixed bugs

  • Toast
    • Fixed wrong reverse order when use heavyWeight
    • Fixed layout heavyWeight toast when location was set to bottom (PR #41)

Demo

  • Add custom accent color and add new color picker form (PR #43)
  • DateTimePicker: library update to v2.1.3

What's Changed

  • Toast: add interpolator option by @DJ-Raven in #38
  • HeavyWeight: macOS round border by @DJ-Raven in #40
  • Toast HeavyWeight: fixed layout when location was set to bottom by @DJ-Raven in #41
  • Demo: add custom accent color and add new color picker form by @DJ-Raven in #43

Full Changelog: v2.5.1...v2.5.2

v2.5.1

08 Jun 16:29

Choose a tag to compare

Fixed bugs

  • Modal dialog:
    • Fixed modal lightWeight relativeToOwner child modal was not closing after parent was closed
  • Fixed blurry image when high DPI system scaling (issues #36) (PR #37):
    • AvatarIcon
    • DropShadowBorder
    • Modal dialog
    • ToastBorder

Demo

  • JFreeChart: update to v1.5.6
  • DateTimePicker: library update to v2.1.2
  • IntelliJ Themes: removed Gruvbox Dark Medium and Gruvbox Dark Soft themes, because it unsupported since
    flatlaf-intellij-themes v3.6

What's Changed

  • Fix high DPI scaling on Modal and AvatarIcon by @DJ-Raven in #37

Full Changelog: v2.5.0...v2.5.1

v2.5.0

05 May 11:57

Choose a tag to compare

New features and improvements

  • Modal dialog
    • SimpleModalBorder: callback SimpleModalBorder.OPENED now work when pushModal and popModal
  • Drawer
    • MenuStyle: add method styleCompactMenuItem(JMenuItem menu, int[] index, boolean isMainItem) to custom style
      compact menu item
    • Add new DrawerNoneLineStyle. use this for no-paint drawer line style but paint arrow style
    • Add method Drawer.getMenuIndexClass(Class<?> itemClass) return array index of menu
  • Other
    • Windows 11: heavyWeight windows now support rond border with drop shadow using flatlaf native library (PR #33)
  • Extras
    • AvatarIcon: add method to change icon:
      • void setIcon(String filename);
      • void setIcon(URL location);
      • void setIcon(Icon icon);

Changed

  • Drawer
    • SimpleDrawerBuilder:
      • All protected fields changed to private. then use get method instead.
        example: getFooter(), getHeader()
      • Add method to custom the drawer component. should override these method:
        • Option createOption()
        • AbstractMenuElement createHeader()
        • JSeparator createHeaderSeparator()
        • AbstractMenuElement createFooter()
  • FlatLaf: update to v3.6

Demo

  • Login form update UI (PR #32)
  • Login validation menu:
    • user:staff and pass: 123 if we want to test validation menu for role staff
    • any user, any password for full role

What's Changed

Full Changelog: v2.4.0...v2.5.0

v2.4.0

05 Mar 11:44

Choose a tag to compare

New features and improvements

  • Toast
    • Add new ToastBorderStyle
      • borderType default BorderType.NONE
      • round default 10
      • shadowSize default insets(0,0,10,10)
      • shadowColor default null (use Popup.dropShadowColor as the value)
      • shadowOpactity default -1 (use Popup.dropShadowOpacity as the value)
      • lineSize default 3 (use whenborderType as TRAILING_LINE, LEADING_LINE,TOP_LINE and BOTTOM_LINE)
      • borderWidth default 1 (use when borderType as OUTLINE)
      • padding default insets(0,0,0,0)
    • Add new layout option gap by default 5
  • Modal dialog
    • SimpleModalBorder: modalBorderOption add padding
      • SMALL
      • MEDIUM
      • LARGE
      • EXTRA_LARGE (default)

Changed

  • Modal
    • SimpleModalBorder: add CLOSE_OPTION
  • Toast
    • option borderType move from ToastStyle to ToastBorderStyle
    • option lineSize move from ToastStyle to ToastBorderStyle
  • Drawer
    • Changed package raven.modal.drawer.data to raven.modal.drawer.item
  • Other
    • Changed raven.modal.drawer.menu.MenuAnimation.java
      to raven.modal.utils.CustomAnimation.java for reusable class
    • Changed optionborderWidth and round from type float to integer
    • Modal and Toast: removed ModalWindow as the transparent background
    • Modal and Toast heavyWeight:
      • Not support animation
      • Round border and drop shadow support only windows 10

Fixed bugs

  • Modal
    • Fixed heavyWeight broken rendering font
  • Toast
    • Fixed heavyWeight broken rendering font
    • Fixed broken rendering font during animation
  • Drawer
    • Fixed animation menu items

Demo

  • Dashboard form
    • TimeSeriesChart add new ChartStackedXYBarRenderer

What's Changed

Full Changelog: v2.3.0...v2.4.0

v2.3.0

21 Jan 16:00

Choose a tag to compare

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

v2.2.0

31 Dec 16:04

Choose a tag to compare

New features and improvements

  • Modal dialog
    • Add custom location (PR #22)
    • Add new option animationOnClose by default true use to enable or disabled animation while closing
  • Toast
    • Add custom location (PR #22)
    • Add new style option paintTextColor by default false. When set to true, the message text will be painted using
      the color corresponding to the toast type

Changed

  • FlatLaf: update to v3.5.4

Fixed bugs

  • Toast
    • Fixed paint border toast background when animation fade in fade out

Demo

  • DateTimePicker: library update to v2.0.0
  • Login: password field add PasswordRevealIcon
  • Form Table: remove table header separator

What's Changed

Full Changelog: v2.1.0...v2.2.0

v2.1.0

07 Nov 15:50

Choose a tag to compare

New features and improvements

  • Modal dialog
    • Add new callback action SimpleModalBorder.OPENED work when modal has opened
    • Add new layout option animateScale to scale the modal when open and close
  • Extras
    • LightDarkButton: add list support l&f light and dark to auto install themes when switch
    • Add new SlidePane component (PR #19)

Changed

  • Modal dialog
    • Update drop shadow border use insets instead of shadowSize and shadowTopSize (PR #16)
    • Default animation duration decreased from 350 to 200
  • Drawer
    • Embed drawer menu now apply border option
    • Add new method Drawer.getDrawerOption() and use it instead of Drawer.getDrawerBuilder().getOption()
    • Default animation duration set to 300
    • Menu item horizontal margin change from 7,7 to 10,10

Demo

  • Use JTextPane instead of JTextArea to avoid error layout when component is RTL (issues with layout)
  • Drawer now use shadow border
  • Update form layout
  • Quick search update layout and add new favorite option (PR #17)
  • Add new frame footer and create new MemoryBar
  • Update form DateTimePicker

What's Changed

Full Changelog: v2.0...v2.1.0

v2.0

20 Oct 14:09

Choose a tag to compare

New features and improvements

  • Modal dialog
    • Add new border option borderWidth and borderColor (PR #14)
    • Add drop shadow border
    • Slider layout changed with animation when push or pop
  • Drawer
    • Support menu two mode full and compact
    • Add new drawer footer LightDark Button
  • Extras
    • Add new LightDarkButton

Changed

  • Modal dialog
    • Add new option sliderDuration
    • Add new BorderOption class
    • Move round option in class Option to BorderOption
    • Move menuOption instance to class SimpleDrawerBuilder and init in constructor
    • Modal background now paint as the component background and not allow null background
  • Drawer
    • Removed menu headerSeparator in default
    • Use LightDarkButtonFooter in default
    • Changed menu header layout to horizontal view

Fixed bugs

  • Modal dialog
    • Fixed component not install when push modal
    • Fixed layout
  • Toast
    • Fixed ToastPanel border null when changed themes or UI updated

Demo

  • Add about information
  • Updated select drawer menu when undo and redo form
  • Fixed component not install when push modal
  • Fixed component orientation RTL not update when show form

What's Changed

  • Modal Dialog: update add border option and fixed push modal by @DJ-Raven in #14
  • Update drawer and modal by @DJ-Raven in #15

Full Changelog: v1.2.0...v2.0

v1.2.0

21 Sep 17:27

Choose a tag to compare

New features and improvements

  • Drawer
    • add line style and menu selected color (PR #7)
    • support for invoke menu event using class (PR #13)

Demo

  • Fixed form search inconsistent search case-insensitive (issues #9) (PR #10)
  • Updated change selected drawer menu item when open form by quick-form-search
  • Datetime picker library update to v1.4.0

What's Changed

  • Drawer: add line style and menu selected color by @DJ-Raven in #7
  • Update actions versions in release.yml & Update Java to 22 from 11. by @sipsuru in #8
  • Demo: Make search functionality case-insensitive by @sipsuru in #10
  • Drawer: support for invoke menu event using class by @DJ-Raven in #13

New Contributors

Full Changelog: v1.1.0...v1.2.0

v1.1.0

27 Jul 15:19

Choose a tag to compare

New features and improvements

  • Modal dialog
    • SimpleModalBorder
      • add constructor to custom action type
      • add modal action (PR #1)
  • Toast
    • ToastStyle
      • add new option showCloseButton
      • add new customIcon
    • add method to update the message in toast promise callback (PR #2)
  • Extras
    • AvatarIcon: now support border option (PR #5)

Changed

  • Modal dialog
    • Modal
      • change method init() to installComponent() and it called when modal show
  • Drawer
    • Method closeDrawer() now close with animation

Fixed bugs

  • Modal dialog
    • SimpleModalBorder: fixed some code to customizable
  • Extras
    • AvatarIcon: fixed image not painted center and size not affect when round value is 0

Demo

  • Add custom modal message (PR #3)
  • Add responsive layout (PR #4)
  • Add form avatar icon (PR #5)
  • Add quick form search (PR #6)

What's Changed

New Contributors

Full Changelog: v1.0.0...v1.1.0