Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!

chinnu choudary

+ Follow
since Sep 14, 2006
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by chinnu choudary

hii ,

i am using displaytag to show pagination in my page , everything is fine but, when i click on next, page is redirected to a strange url :

please help:

my jsp code is below:

it is not working even if i set the requestURI value to my current action?

any suggestions?
10 years ago
Can some one please provide sample code for creating a dynamic tree by using sx:tree tag , i am using struts 2.1.6 and same version of struts-dojo plugin,

i googled and was not able to find a clean working code?

please help!
10 years ago

Rob Prime wrote:Please

You can only add a system tray icon on the local machine with Java. To add the same tray icon on other machines as well, you will need to run a Java application on those machines that adds the tray icons.


my actual idea is i have a UDPSender which is going to send a message to all machines in LAN or VLAN and i need to catch that message and show it as an alert in the tray on top of a trayicon as a popup message, now my UDPServer is OK and it is able to send messages to all te machines in my network ...but i am not able to figure out how to show that message as a alert in all those messages ?

any help is deeply appreciated!

11 years ago
hi ,

i have created a small program to create a systemtray icon and i want this to be shown on multiple machines ,
how can i add trayicon on many machines running it from my machine ?

trayicon code:

if (SystemTray.isSupported()) {
final SystemTray tray = SystemTray.getSystemTray();
Image image =Toolkit.getDefaultToolkit().getImage("info.jpg");
PopupMenu popup = new PopupMenu();
final TrayIcon trayIcon = new TrayIcon(image, "Alert", popup);

// Info
MenuItem item = new MenuItem("Info");
item.addActionListener(new ShowMessageListener(trayIcon,
"Alert!", message, TrayIcon.MessageType.INFO));

// Close
item = new MenuItem("Close");
item.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {

try {

Adding a Popup kind of Alert for Tray Icon
trayIcon.displayMessage("Alert!", message, MessageType.INFO);
} catch (AWTException e) {
System.err.println("Can't add to tray");
} else {
System.err.println("Tray unavailable");

11 years ago