Sliding Notification bar in java (a la Firefox)

后端 未结 2 1074
夕颜
夕颜 2020-12-11 09:36

I would like to implement a sliding notification bar as the one in Firefox or IE for my java application. But I don\'t want to reinvent the wheel and I\'m sure someone out t

相关标签:
2条回答
  • 2020-12-11 09:49

    There's an example in Swing Hacks called "Slide Notes Out from the Taskbar" that seems pretty close to what you want (there's a preview on Google's Book Search at the moment).

    The code is freely available from the official O'Reilly Swing Hacks page, under "examples." Not sure what the license is, but it's worth a look (Chapter 6, hack 46). At any rate, Swing Hacks is a worthy purchase at ~$20.

    0 讨论(0)
  • 2020-12-11 10:02

    A standard way to do it is to use Swing TrayIcon API. That would probably be the most convenient way too :)

    0 讨论(0)
提交回复
热议问题