gde_big

Activating method roomChatActivated

Discussion created by gde_big on Jan 25, 2007
Latest reply on Jan 29, 2007 by gde_big

I want to use method roomChatActivated and this is my code :

 

            public void chatRoomActivated(final ChatRoom room){

                System.out.println("room activated");

                if (room.getChatType().toString()=="chat"){

                    room.getToolBar().addChatRoomButton(Videobutton);

                    room.getToolBar().addChatRoomButton(Audiobutton);

                }

 

                Videobutton.addActionListener(new ActionListener() {

                    public void actionPerformed(ActionEvent e) {

                        //Action

                    }

                });

 

                Audiobutton.addActionListener(new ActionListener() {

                    public void actionPerformed(ActionEvent e) {

                        //Action

                    }

                });

            }

 

method chatRoomActivated is contained in class chatRoomListenerAdapter. With this code, i want to add a button at a chat room when activated again. But my code is didn''t work... Anybody can help me??

Outcomes