i had follow ur step… but i found error when i compiling it because “org.jivesoftware.spark…” not found. any other suggestion?
i talk about button that i add on chatWindow. this is my simple code :
private void addChatRoomButton(){
// Retrieve ChatManager from the SparkManager
ChatManager chatManager = SparkManager.getChatManager();
// Create a new ChatRoomButton.
final ChatRoomButton Videobutton = new ChatRoomButton(“Video”);
final ChatRoomButton Audiobutton = new ChatRoomButton(“Audio”);
// Add to a new ChatRoom when the ChatRoom opens.
chatManager.addChatRoomListener(new ChatRoomListenerAdapter() {
public void chatRoomOpened(final ChatRoom room) {
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
}
});
}
public void chatRoomLeft(ChatRoom room) {
room.getToolBar().removeChatRoomButton(Videobutton);
room.getToolBar().removeChatRoomButton(Audiobutton);
}
});
}
i just follow the example on sparkplug_dev_guide.
And one another problem that i found… how to make the button on chatWindow is visible for all chat window but invisible for conference chat window? my button that i make with the code above, is visible only for the newest chatWindow n it visible on conference chat window too… thnx for ur attention…