Adding items to JWM toolbar can be tricky by hand, so that it would be easier, it can do via script or program also.
JWM-toolbar-item-deb-and-rpm-packages.zip
The script:
#!/bin/bash
## RPJ 6.6.2024
##
#
#
TEXTDOMAINDIR=/usr/share/locale
TEXTDOMAIN=jwm-toolbar-item
NAME=`yad --center --width=500 --height=100 --text-align=center --text=$"PROGRAM NAME" --entry --entry-label=$"HERE" --entry-text=""`
yad --text=$"Choose Program" --title=$"Choose Program"
PROG=`yad --file --width=1000`
yad --text=$"Choose Icon" --title=$"Choose Icon"
ICON=`cd /usr/share/icons && yad --file --width=1000`
##
if [ $? = 0 ];
then
cp $HOME/.jwm/tray $HOME/.jwm/tray.backup
{
echo "
} > /tmp/newline.txt
sed -i -e 's/TrayButton label=/TrayButton label=""/g' /tmp/newline.txt
sed -i -e 's/icon=/icon="/g' /tmp/newline.txt
sed -i -e 's/popup=/" popup="/g' /tmp/newline.txt
sed -i -e 's/>exec/" >exec/g' /tmp/newline.txt
sed -i "7a\\$(cat /tmp/newline.txt) " $HOME/.jwm/tray
rm /tmp/newline.txt
sleep 1
jwm -restart
sleep 1
yad --center --width=500 --height=30 --text-align=center --text=$"New toolbar item is made"
else exit 0
fi