1.扫雷中英雄榜用JAVA Swing怎么做
2.用求扫雷游戏的扫雷扫雷自定义雷区功能源代码(用JAVA编写)
扫雷中英雄榜用JAVA Swing怎么做
JOptionPane就可以了,不必自己再设计类了。源码源码爆文名片源码
你运行一下我下面的红包蜻蜓fm源码代码段就知道了。
import javax.swing.JOptionPane;
import javax.swing.JDialog;
import javax.swing.JButton;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class MultiplyTable1{
public static void main(String[] args){
JOptionPane pane=new JOptionPane(String.format("初级:%1$3d秒%2$s\n中级:%3$3d秒%4$s\n高级:%5$3d秒%6$s",扫雷扫雷棋牌源码赚钱,"匿名",,"匿名",,"匿名"));
JButton btnRecount,btnOK;
btnRecount=new JButton("重新计分(R)");
btnRecount.setMnemonic('R');
btnOK=new JButton("确定");
pane.setOptions(new JButton[]{ btnRecount,btnOK});
final JDialog dlgHeroList=pane.createDialog(null,"扫雷英雄榜");
btnRecount.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
dlgHeroList.dispose();
//重新计算
}
});
btnOK.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
dlgHeroList.dispose();
}
});
dlgHeroList.setVisible(true);
}
}
用求扫雷游戏的自定义雷区功能源代码(用JAVA编写)
private sub command1.click()
frmMain.mnuBegin.checked=False
frmMain.mnuMiddle.checked=False
frmMain.mnuExpert.checked=False
frmMain.mnuCust.checked=True
iCols=txtCol.Text
iRows=txtRow.Text
iBombs=txtNum.Text
iLevel=3
OnGameNew
frmMain.Form Print
Unload Me
End Sub
Private Sub Command2 Click()
Unload Me
End Sub
Private Sub Form Load()
txtRow.Text=
txtCol.Text=
txtNum.Text=
End Sub
2024-12-29 01:09
2024-12-29 00:30
2024-12-29 00:20
2024-12-29 00:05
2024-12-28 23:54
2024-12-28 23:38