area.append(choice.getSelectedItem() + \ + \ \ text.setText(null);
}
if (e.getSource() == Quit || e.getSource() == quit) {// quit键 System.exit(0); }
if (e.getSource() == about) { JOptionPane.showMessageDialog(File, \ \TION_MESSAGE); }
if (e.getSource() == copy) { area.copy(); text.copy(); }
if (e.getSource() == cut) { area.cut(); text.cut(); }
if (e.getSource() == paste) { area.paste(); text.paste(); }
}
public static void main(String[] args) { CHatromm chatroom = new CHatromm(); }
@Override
public void itemStateChanged(ItemEvent e) {// 设置显示字体 // TODO Auto-generated method stub String name = (String) list.getSelectedItem(); Font f = new Font(name, Font.BOLD, 20); area.setFont(f); }
}
6
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库实验四 java图形用户界面设计(2)在线全文阅读。
相关推荐: