File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Swing / AWT / SWT
System Tray with Java 6
Joined: Mar 01, 2007
Mar 01, 2007 20:51:00
I'm trying to add JRadioButtonMenuItems to the popup Menu for my sample System Tray app. The only problem is that it wants a
class, not a
class, so I can't add the radio button items. To confuse matters further, the Sun example at
shows sample picture WITH JRadioButtonMenuItems
Is there a way to make this work, or will I have to ignore the
param of the
object and manage my own
Joined: Apr 07, 2006
Mar 03, 2007 07:25:00
Credits to 'Source' for the article 'Using
I haven't really tried it but seems like its possible.
Basically, the idea is to invoke the jpopup menu manually during a popuptrigger mouse event. Seems a bit hackish.
Hope this helps.
I agree. Here's the link:
subject: System Tray with Java 6
adding JPopupMenu to a JMenuBar
Problem with implement system tray using jdk 1.5
System Tray - double click icon to set visible
minimise to systray
Error loading image jar
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014