?? topicserver.java
字號:
import javax.naming.*;
import javax.jms.*;
public class TopicServer
{
private String JMSTopic = "jms/Topic";
private ChatDisplay display;
public TopicServer(ChatDisplay display, String JMSTopic) throws NamingException, JMSException {
this.display = display;
if (JMSTopic != null)
this.JMSTopic = JMSTopic;
// attach to topic
}
public void send (String from, String message) throws JMSException {
display.addMessage (from, message);
}
public void shutdown () {
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -