搜索资源列表
MySwingTest
- 适合初学者看的JAVA原代码练习,有ppt说明,主要讲了SWING类里面的控件应用,JButton,JList,JPane-for beginners look at the Java source code practice, ppt stated that the main speakers SWING categories of control applications, JButton, JList, JPane
Jfilechooser
- JButton button JTextArea text JTextPane textpane FileInputStream readfile JScrollPane scroll Container con JFileChooser chooser=new JFileChooser()
msjavx86
- ImageIcon icon 构造方法 JButton() JButton(str) JButton(icon) JButton(str,icon) -ImageIcon icon Construction JButton () JButton (str) JButton (icon) JButton (str, icon)
ButtonExample
- 简单的JButton实例,进攻学习或参考。-a easy JButton example,just for study or learn.
31221527719
- mport javax.swing.* import java.awt.event.* public class Block extends JButton implements ActionListener { ImageIcon 翻开时的图标=null,关闭时的图标=null public Block() { addActionListener(this) } public ImageIcon 获取翻开时的图标() { r
JbuttonOcx
- 最新打造的JButton按钮控件,编译环境vb6.0。-News command button control
Calculator2
- 三个JTextField,一个JLabel,一个JButton,进行计算。-3 JTextField, a JLabel, a JButton, calculated.
button
- VB 漂亮的按钮。多种样式,很稳定,JButton-VB beautiful buttons. A variety of styles, very stable, JButton
JMine
- 本程序为java课程设计。参考Windows自带的扫雷游戏做了简化。用java编写,采用了Swing 界面。其中运用了OO思想。多线程技术、java的awt.events消息处理。总代码量700多行。AboutFrame.java程序“关于”对话框。JCounter.java计数器类。JMine.java主程序类。JMineArth.java 地雷分布图算法类。JMineButton.java:Jbutton的扩展类有行号、列号、标记标志和单击标志。StartJMine.java程序入口点。Wi
JButton常用的一些方法
- JButton 实现了普通的三态外加选中、禁用状态,有很多方法可以设置,不要自己去写鼠标监听器。 setBorderPainted(boolean b) //是否画边框,如果用自定义图片做按钮背景可以设为 false。 setContentAreaFilled(boolean b) //是否填充,如果你的自定义图片不是矩形或存在空白边距,可以设为 false 使按钮看起来透明。 setFocusPainted(boolean b) //是否绘制焦点(例如浅色虚线框或者加粗的边框
Calculator
- 该计算器模仿Windows自带的计算器,只实现标准型计算器功能。 在完成Swing的学习后,练习使用Swing包中JFrame、JButton、JLabel、JTextField、JMenu、JMenuItem等组件完成图形界面绘制。 -The calculator comes mimic Windows calculator, only for standard calculator functions. After completing Swing learning, pract