14.5 JButton
普通网友
这个作者很懒,什么都没留下…
展开
-
14. 5. 1. Creating a JButton
import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.ImageIcon; imp翻译 2011-10-02 12:41:51 · 920 阅读 · 0 评论 -
14. 5. 2. 按钮事件及快捷键 Creating a JButton from an Action object
import java.awt.Component; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import javax.swing.AbstractAction; import翻译 2011-10-02 13:02:22 · 673 阅读 · 0 评论 -
14. 8. 2. JToggleButton is a button that has two states. Pressed and not pressed.
import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JDialog; import jav翻译 2011-10-02 14:08:13 · 765 阅读 · 0 评论