-1
如何显示,当按下Button1的图像显示图像,这是用来检查一个按下按钮的代码IM:如何按钮1时按下
public class clientFrameButtons {
public void frameClient(){........
....
button1.addActionListener(new ActionListener(){ //ActionListener checks for button press
public void actionPerformed(ActionEvent e){
// if button is pressed the following will happen
我试图实现一个if语句并在网上查看了几个来源,但无法找到符合我需求的答案。
谢谢。
好的,我明白你的意思了。谢谢您的回复! – user7431342