全文预览

蜘蛛纸牌游戏说明书

上传者:梦&殇 |  格式:doc  |  页数:26 |  大小:537KB

文档介绍
ax.swing.JRadioButtonMenuItem; import javax.swing.ButtonGroup; public class SpiderMenuBar extends JMenuBar{ //生成 spider 框架对象 Spider main = null; //生成菜单组 JMenu jNewGame = new JMenu(" 游戏"); JMenu jHelp = new JMenu(" 帮助"); //生成菜单项 JMenuItem jItemAbout = new JMenuItem(" 关于"); JMenuItem jItemOpen = new JMenuItem(" 开局"); JMenuItem jItemPlayAgain = new JMenuItem(" 重新发牌"); //生成单选框 JRadioButtonMenuItem jRMItemEasy = new JRadioButtonMenuItem(" 简单:单一花色"); JRadioButtonMenuItem jRMItemNormal = new JRadioButtonMenuItem(" 中级:双花色"); JRadioButtonMenuItem jRMItemHard = new JRadioButtonMenuItem(" 高级:四花色");; JMenuItem jItemExit = new JMenuItem(" 退出"); JMenuItem jItemValid = new JMenuItem(" 显示可行操作"); public SpiderMenuBar(Spider spider){ this.main = spider; jNewGame.add(jItemOpen); jNewGame.add(jItemPlayAgain);

收藏

分享

举报
下载此文档