获取按键名字

getActionCommand();
ActionListener flavorListener = e->{
switch(e.getActionCommand())
{
case “Metal风格”:
}
};

猜你喜欢

转载自blog.csdn.net/so_band/article/details/80987328
今日推荐