Hashtable all_stocks=(Hashtable)rsp_list.getFirst();
    public void actionPerformed(ActionEvent e) {        String command=e.getActionCommand();        RspList rsp_list;        Rsp     first_rsp;        try {            if(command.equals("Get")) {                String stock_name=stock_field.getText();                if(stock_name == null || stock_name.length() == 0) {                    showMsg("Stock name is empty !");                    return;                }                showMsg("Looking up value for " + stock_name + ':');                rsp_list=disp.callRemoteMethods(null, "getQuote", new Object[]{stock_name},                                                new String[]{String.class.getName()},                                                GroupRequest.GET_FIRST, 10000);                first_rsp=(Rsp)rsp_list.elementAt(0);                Float val=first_rsp != null? (Float)first_rsp.getValue() : null;                if(val != null) {                    value_field.setText(val.toString());                    clearMsg();                }                else {                    value_field.setText("");                    showMsg("Value for " + stock_name + " not found");                }            }            else                if(command.equals("Set")) {                    String stock_name=stock_field.getText();                    String stock_val=value_field.getText();                    if(stock_name == null || stock_val == null || stock_name.length() == 0 ||                            stock_val.length() == 0) {                        showMsg("Stock name and value have to be present to enter a new value");                        return;                    }                    Float val=new Float(stock_val);                    disp.callRemoteMethods(null, "setQuote", new Object[]{stock_name, val},                                           new Class[]{String.class, Float.class},                                           GroupRequest.GET_FIRST, 0);                    showMsg("Stock " + stock_name + " set to " + val);                }                else                    if(command.equals("All")) {                        listbox.removeAll();                        showMsg("Getting all stocks:");                        rsp_list=disp.callRemoteMethods(null, "printAllStocks",                                                        (Object[])null, (Class[])null,                                                        GroupRequest.GET_NONE,  0);                        System.out.println("rsp_list is " + rsp_list);                        Hashtable all_stocks=(Hashtable)rsp_list.getFirst();                        if(all_stocks == null) {                            showMsg("No stocks found");                            return;                        }                        clearMsg();                        listbox.removeAll();                        String key;                        Float val;                        for(Enumeration en=all_stocks.keys(); en.hasMoreElements();) {                            key=(String)en.nextElement();                            val=(Float)all_stocks.get(key);                            if(val == null)                                continue;                            listbox.add(key + ": " + val.toString());                        }                    }                    else                        if(command.equals("Quit")) {                            setVisible(false);                            channel.close();                            System.exit(0);                        }                        else                            System.out.println("Unknown action");        }        catch(Exception ex) {            value_field.setText("");            ex.printStackTrace();            showMsg(ex.toString());        }    }