{
Message mess = new Message( mess.toString() ) ;
Database.putMessage( mess )
View.getInstance().repaint();
}
public String getMessageContent()
{
Message m = Database.getInstance.getMessage();
return m.getContent();
}
}
/************************************/
/*Message: a model indicate message object*/
package model;
import......
public class Message
{
public Message(String str)
{
}
public String getContent()
{
}
}
/**********************************/
文章来源于领测软件测试网 https://www.ltesting.net/