# swing-toast **Repository Path**: httpgitoschinet/swing-toast ## Basic Information - **Project Name**: swing-toast - **Description**: 基于swing实现的toast弹框提示 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 12 - **Forks**: 8 - **Created**: 2023-11-07 - **Last Updated**: 2025-04-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # swing-toast `` 基于swing实现的toast弹框提示 `` ## 参数信息 | 键值 | 描述 | 值 | 默认值 | | ------------ | ------------ |------------|----------------| | Toast.outlineWidth | 外边框 | int | 0 | | Toast.iconTextGap | 文本间隔 | int | 5 | | Toast.closeButtonGap | 关闭按钮间隔 | int | 5 | | Toast.arc | 圆角 | int | 20 | | Toast.horizontalGap | 水平间隔 | int | 10 | | Toast.limit | 弹框个数限制-1 不限制 | int | -1 | | Toast.duration | 持续时间(毫秒) | long | 2500 | | Toast.animation | 动作速速 | int | 200 | | Toast.animationResolution | | int | 5 | | Toast.animationMove | 每次移动大小 | int | 10 | | Toast.minimumWidth | 最小宽度 | int | 50 | | Toast.maximumWidth | 最大宽度-1 不设置 | int | -1 | | Toast.shadowColor | 阴影颜色 | Color | | | Toast.shadowOpacity | 透明度0到1f | float | 0.1f | | Toast.shadowInsets | 阴影间距 | Insets | 0,0,6,6 | | Toast.useEffect | 是否使用阴影 | boolean | true | | Toast.effectWidth |阴影宽度 0.5f 到 50% | float | 0.5f | | Toast.effectOpacity | 阴影透明度0 到 1f | float | 0.2f | | Toast.effectAlignment |阴影距离 left, right | String | left | | Toast.effectColor | 阴影颜色 | Color | | | Toast.success.effectColor | 成功阴影颜色 | Color | | | Toast.info.effectColor | 提示阴影颜色 | Color | | | Toast.warning.effectColor | 警告阴影颜色 | Color | | | Toast.error.effectColor | 错误阴影颜色 | Color | | | Toast.outlineColor | 外边框颜色 | Color | | | Toast.foreground | 字体颜色 | Color | | | Toast.background | 背景颜色 | Color | | | Toast.success.outlineColor | 成功边框颜色 | Color | | | Toast.success.foreground | 成功字体颜色 | Color | | | Toast.success.background | 成功背景颜色 | Color | | | Toast.info.outlineColor | 提示边框颜色 | Color | | | Toast.info.foreground | 提示字体颜色 | Color | | | Toast.info.background | 提示背景颜色 | Color | | | Toast.warning.outlineColor | 警告边框颜色 | Color | | | Toast.warning.foreground | 警告字体颜色 | Color | | | Toast.warning.background | 警告背景颜色 | Color | | | Toast.error.outlineColor | 错误边框颜色 | Color | | | Toast.error.foreground | 错误字体颜色 | Color | | | Toast.error.background | 错误背景颜色 | Color | | | Toast.frameInsets | frame边距 | Insets | 10,10,10,10 | | Toast.margin | Toast边距 | Insets | 8,8,8,8 | | Toast.showCloseButton | 是否显示关闭按钮 | boolean | true | | Toast.closeIconColor | 关闭按钮颜色 | Color | | #### Visit flatlaf for more ``********`` - [Flatlaf github](https://github.com/JFormDesigner/FlatLaf) - [Flatlaf documentation](https://www.formdev.com/flatlaf/customizing/)