public MessagePreferencesPanel() {
setLayout(null);
refuseMessages = new JCheckBox("Refuse Messages");
refuseMessages.setSize(150, 25);
refuseMessages.setLocation(10, 25);
refuseMessages.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
updateEnabled();
}
});
add(refuseMessages);
denyMessageLabel = new JLabel("Refusal Message:");
denyMessageLabel.setSize(150, 25);
denyMessageLabel.setLocation(20, 50);
add(denyMessageLabel);
denyMessageText = new JTextField(REFUSAL_MESSAGE_DEFAULT);
denyMessageText.setSize(400, 25);
denyMessageText.setLocation(25, 75);
add(denyMessageText);
setSize(STD_XSIZE, STD_YSIZE);
}
MessageManager.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:myster
作者:
评论列表
文章目录