Currently Selected User

Discussion created by LAMEtHIng on Oct 10, 2007
Latest reply on Oct 11, 2007 by LAMEtHIng

I am sure this is so easy but I searched and wasn't able to find anything but I just can't seem to figure out how to get the currently selected user from with this code (not too mention I am an extreme Java neophyte!):










final Action sayHelloAction = new AbstractAction() {
            public void actionPerformed(ActionEvent actionEvent) {
                //string to store the selected user
                String selectedUser = "";
                ....code to find the currently "clicked" or selectedUser....
                 //temporarily print out the selectedUser for testing
                JOptionPane.showMessageDialog(SparkManager.getMainWindow(), selectedUser);
                //send fullJID to another function



Thanks in advance!