Java按钮对象操作与绘制示例
b1.setLabel("按钮对象1");
str1 = b2.getLabel();
repaint();
public void paint(Graphics g) {
g.drawString(str1, 20, 30);
}
9.22MB
文件大小:
评论区