Location:
Search - JButton
Search list
Description: 适合初学者看的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
Platform: |
Size: 678445 |
Author: 芳房 |
Hits:
Description: 编写程序验证 JButton, JCheckBox, JRadioButton-prepared to verify JButton, JCheckBox, JRadioButton
Platform: |
Size: 1427 |
Author: 周峰 |
Hits:
Description: JButton的应用Java源程序-JButton source Java Application
Platform: |
Size: 789 |
Author: 王彧博 |
Hits:
Description: JButton 在网页的应用-JButton use of the web site,
Platform: |
Size: 847 |
Author: 王彧博 |
Hits:
Description: java和matlab混合编程的应用:在java中调用matlab-java and mixed Matlab Application Programming : java Calling Matlab
Platform: |
Size: 2705 |
Author: ouyangxi |
Hits:
Description: 演示两种不同进度条的使用方法。5、 所用主要编程技术:Swing组件JButton、Timer 、Jpanel。
JCheckBox、JTextArea 后台线程编程、Thread类的使用。JProgressBar类的使用。
-demonstration of the progress of the two different methods of using. 5, the use of the main programming technology : Swing components JButton, Timer, Jpanel. JCheckBox, JTextArea background thread programming, the use of the Thread class. JProgressBar category of use.
Platform: |
Size: 1634 |
Author: wangyue |
Hits:
Description: java常用的各种布局,基本容器的使用,java组件JButton等的使用,String类里的图形用户界面.-java all the popular layout, the use of basic containers, java JButton components such as the use of the String class Lane graphical user interface.
Platform: |
Size: 35877 |
Author: xiaolanyao |
Hits:
Description: 主要是练习java中的按钮事件.通过对JButton 的注册来实现-practice java is the button events. JButton right through to achieve registration
Platform: |
Size: 1010 |
Author: aa |
Hits:
Description: java扫雷游戏
程序文件说明
文件 内容 备注
AboutFrame.java 程序“关于”对话框。
JCounter.java 计数器类。 有小位数3位,图形。
JMine.java 主程序类
JMineArth.java 地雷分布图算法类
JMineButton.java Jbutton的扩展类有行号、列号、标记标志和单击标志
StartJMine.java 程序入口点
WinFrame.java 胜利对话框,有易中难三个启动选项
StartJMine.bat 运行程序的批处理文件
说明:
1. 在java环境下,运行java StartJMine启动程序,或双击StartJMine.bat启动程序。程序框架都在JMine.java中。JMine.java 还包括两个线程类,分别为计时器线程和胜利后等待用户重起游戏的线程。
版权声明:例子版权归作者所有,遵循GPLv3许可开源发布,您可以自由使用。
Platform: |
Size: 62151 |
Author: James |
Hits:
Description: JAVA里面的一种好看实用的JButton
Platform: |
Size: 118407 |
Author: 江南 |
Hits:
Description: JButton的一个实例 用于检测其反转功能-JButton an example for its reversal detection function
Platform: |
Size: 194075 |
Author: 你好 |
Hits:
Description: JButton的应用Java源程序-JButton source Java Application
Platform: |
Size: 1024 |
Author: 王彧博 |
Hits:
Description: JButton的一个实例 用于检测其反转功能-JButton an example for its reversal detection function
Platform: |
Size: 193536 |
Author: |
Hits:
Description: java和matlab混合编程的应用:在java中调用matlab-java and mixed Matlab Application Programming : java Calling Matlab
Platform: |
Size: 2048 |
Author: ouyangxi |
Hits:
Description: 1。我们要实现一个比较简单的用鼠标画图工具,画图主要包括直线,椭圆,矩形,圆 ,圆弧的绘制。绘制过程中包括图像颜色的选择,是否填充等要求。
2。每次进行鼠标画图操作时,不能把以前画的图像清除掉。
3。在编程过程中希望同学们利用JAVA对象编程的思想:即类,接口,包等。
4。用到Swing和awt包中的组件如:Jbutton,Jradiobutton,APPLET,canvas(画图面板)等组件,以及组件响应事件,键盘,鼠标事件。
2。每次进行鼠标画图操作时,不能把以前画的图像清除掉。
3。在编程过程中希望同学们利用对象编程的思想:即类,接口,包等。
4。用(画图面板)等组件,以及组件响应事件,键盘,鼠标事件。-err
Platform: |
Size: 13312 |
Author: mygogliyuqi |
Hits:
Description: 创建进度条
jpb = new JProgressBar()
jbutton = new JButton("观看演示")
jbutton.addActionListener(this)
this.getContentPane().add(jbutton)
//设置进度条的前景色为红色
jpb.setForeground(Color.red)
this.getContentPane().add(jpb)
//给进度条注册事件监听器-Create a progress bar jpb = new JProgressBar () jbutton = new JButton ( watch demo ) jbutton.addActionListener (this) this.getContentPane (). Add (jbutton)// set the progress bar of Foreground red jpb.setForeground (Color . red) this.getContentPane (). add (jpb)// progress bar to the registration event listener
Platform: |
Size: 1024 |
Author: lyltiancai |
Hits:
Description: Java JButton的基本使用方法,初学者看。-The basic use of Java JButton Ways, beginners look.
Platform: |
Size: 1024 |
Author: 孟祥川 |
Hits:
Description: 基于GUI的Java五子棋游戏源码,可人机对战,用java swing做的,运行时
需要修改图片的路径。
制作思路:
用按钮做棋子,用图片填充每个按钮。
设置棋盘为24*24的,五子棋FiveChessGame类,继承了JFrame,并且
添加了时间监听,五子棋的棋子chess,用JButton表示,五子棋棋子chess
对应的棋子标识,用于标记棋子的状态。 1表示黑棋,-1表示白棋,默认0表
示无棋子,点击棋子时设置棋子的图标setOnChessIcon。 根据判断该位置
的棋子是否有棋子,和棋子颜色设置棋子图标
测试棋子的方法showChess。用于将chessInt数组内容打印到控制台,
以便观看。-GUI-based Java backgammon game source code, can be man-machine gaming, to do with java swing, run-time
Need to modify the image path.
Making ideas:
Using the button as a pawn to fill with pictures for each button.
Set the board to 24* 24, renju FiveChessGame class inherits JFrame, and
Add the time monitoring the game of the chess pieces chess, with a JButton that the game of chess pieces
Corresponding piece logo, used to mark pieces of state. 1 is Black, said the white side is-1, the default 0 table
Showed no pawn, click the icon pieces when set pieces setOnChessIcon. According to determine the location
The piece is a piece, and pieces color set piece icon
Test piece approach showChess. Array of content for the chessInt print to the console,
To watch.
Platform: |
Size: 346112 |
Author: 齐高 |
Hits:
Description: java的Jbutton,有视频,源码,笔记,方便大家的学习和交流。-java' s Jbutton, a video, source code, notes, we facilitate learning and exchange.
Platform: |
Size: 4101120 |
Author: huyunfei |
Hits:
Description: package 常用组件之JButton
import java.awt.event.ActionEvent
import java.awt.event.ActionListener
import java.awt.event.WindowAdapter
import java.awt.event.WindowEvent
import javax.swing.JButton
import javax.swing.JFrame
import javax.swing.JLabel
import javax.swing.JPanel
public class TestJButton {
public static void main(String[] args) {
new MyFrame()
}
}
class MyFrame extends JFrame-JButton package of commonly used components import java.awt.event.ActionEvent import java.awt.event.ActionListener import java.awt.event.WindowAdapter import java.awt.event.WindowEvent import javax.swing.JButton import javax.swing.JFrame import javax.swing.JLabel import javax.swing.JPanel public class TestJButton {public static void main (String [] args) {new MyFrame () }} class MyFrame extends JFrame
Platform: |
Size: 2048 |
Author: Brian |
Hits: