Location:
Search - java jpanel
Search list
Description: java布局管理器嵌套综合使用,实现复杂布局已满足用户需要-java layout manager to use nested integrated, complex layout has to meet user needs
Platform: |
Size: 856 |
Author: 周峰 |
Hits:
Description: 设计思路
首先该程序主要知识点就是图形用户界面,对程序界面的基本结构设计如下
建立框架作为可视化程序界面的基本界面,考虑到要在程序中添加各种组件,所以采用面板比较合理,故将类将要继承JPanel类。
接下来就是在程序中添加各类元素,其中包括有蛇体,食物(蛇体和食物都是由小方形块构成,采用不同的颜色区别,);另外还计分器(即蛇的长度乘以10).计关器。
再者就是程序的运动过程设计:其中应包括蛇的移动.方向的改变。
最后就是蛇的状态判断:其中应包括蛇是否吃到时了食物,是否有碰壁,是否有咬到自己。
此外,在运行程序的时候要考虑到延时的问题,故要用到线程的内容,设计采用的是实现接口Runnabled。
Platform: |
Size: 36871 |
Author: 陈新星 |
Hits:
Description: swing component example code illustrating JTabbedpane and JPanel. -swing component example code illustrating JTabbedpane and
JPanel.
Platform: |
Size: 1024 |
Author: han jing |
Hits:
Description: java布局管理器嵌套综合使用,实现复杂布局已满足用户需要-java layout manager to use nested integrated, complex layout has to meet user needs
Platform: |
Size: 1024 |
Author: 周峰 |
Hits:
Description: java写的文件输入操作,用JPanel实现图形界面,适合初学者参考-written in java file input operation, using JPanel achieve graphical interface, suitable for beginners reference
Platform: |
Size: 1024 |
Author: 一鸣 |
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: 1024 |
Author: wangyue |
Hits:
Description: 设计思路
首先该程序主要知识点就是图形用户界面,对程序界面的基本结构设计如下
建立框架作为可视化程序界面的基本界面,考虑到要在程序中添加各种组件,所以采用面板比较合理,故将类将要继承JPanel类。
接下来就是在程序中添加各类元素,其中包括有蛇体,食物(蛇体和食物都是由小方形块构成,采用不同的颜色区别,);另外还计分器(即蛇的长度乘以10).计关器。
再者就是程序的运动过程设计:其中应包括蛇的移动.方向的改变。
最后就是蛇的状态判断:其中应包括蛇是否吃到时了食物,是否有碰壁,是否有咬到自己。
此外,在运行程序的时候要考虑到延时的问题,故要用到线程的内容,设计采用的是实现接口Runnabled。
Platform: |
Size: 36864 |
Author: 陈新星 |
Hits:
Description: Java JPanel中的分页代码,初学者做的。-Java JPanel in pagination code, beginners do.
Platform: |
Size: 1024 |
Author: 孟祥川 |
Hits:
Description: 一个制作小游戏的面板程序,加进了有意思的图片。制作了2个JPanel分别放在frame的左右两边,然后在左边画图实现游戏,右边控制游戏区,这只是游戏的一个部分。-A game of panel production process, added an interesting picture. JPanel produced, respectively, on two sides of the frame, and then the realization of the game drawing on the left, the right to control the game area, this is only a part of the game.
Platform: |
Size: 16384 |
Author: 丛刚 |
Hits:
Description: 這是一個用JAVA所寫的簡單繪圖應用程式
JPanel為容器物件.pane1為畫布.pane2物件用來放置繪圖工具按鈕.pane3放置顏色按鈕-This is a book with a simple JAVA application mapping for the JPanel container object. Pane1 for the canvas. Pane2 object mapping tool used to place the button. Pane3 placed color button
Platform: |
Size: 18432 |
Author: KRAD |
Hits:
Description: 四个小车运动在主窗口中运动,点击运动按钮可以运动,单击停止按钮,可以停止-Four cars move in JPanel
Platform: |
Size: 534528 |
Author: ZhangYang |
Hits:
Description: JAVA GUI设计,详细讲述JPanel用法-JAVA GUI design, detail JPanel usage
Platform: |
Size: 2404352 |
Author: 白天 |
Hits:
Description: 本程序通过调用JAVA提供的BasicStroke;Button; Color Container Graphics Panel ButtonGroup JFrame JComboBox;JCheckBox;JMenu;JMenuItem;ImageIcon;JPanel UIManager等基本类进行了简单的界面设计。
程序运用了JAVA中类的继承特性实现了对父类方法的调用,运用了ButtonHandler类用来侦听基本按钮的操作;运用ButtonHandler1类侦听颜色选择,画笔粗细设置、文字输入按钮的操作。鼠标事件mouseA类继承了MouseAdapter类,用来完成鼠标的相应事件操作;鼠标事件mouseB类继承了MouseMotionAdapter类,用来完成鼠标拖动和鼠标移动时的相应操作。
-This procedure provided by calling JAVA BasicStroke Button Color Container Graphics Panel ButtonGroup JFrame JComboBox JCheckBox JMenu JMenuItem ImageIcon JPanel UIManager basic class a simple interface design. Procedures using the JAVA classes inherit properties of the parent class method implements a call, use the ButtonHandler basic button class to listen for the operation use ButtonHandler1 class listening colors, pen thickness settings, text input button operation. Mouse event mouseA class inherits MouseAdapter class, corresponding to the completion of the mouse event operations mouse event mouseB class inherits MouseMotionAdapter class, used to complete the mouse to drag and move the mouse the corresponding operation.
Platform: |
Size: 62464 |
Author: 远远 |
Hits:
Description: 登陆注册界面设计,注册失败自动返回,成功则跳转页面-public class Register extends JFrame implements ActionListener{
private static final long serialVersionUID = 1L
String Sex = ""
JLabel lb_title,lb_user,lb_psd,lb_repsd,lb_sex,lb_class,lb_age
JTextField tf_user,tf_age
JPasswordField pf_psd,pf_repsd
JRadioButton rbtn_male,rbtn_female
JComboBox cb_class
JButton btn_register,btn_reset,btn_cancel
JPanel p0,p1,p2,p3,p4,p5,p6
public String getTitle(){
return "用户注册"
}
public Register(){
p0=new JPanel()
lb_title=new JLabel("用户注册")
lb_title.setFont(new Font("宋体",Font.BOLD,23))
p0.add(lb_title)
p1 = new JPanel()
lb_user=new JLabel("用 户 名:")
tf_user=new JTextField(16)
p1.add(lb_user)
Platform: |
Size: 9216 |
Author: 李昭 |
Hits:
Description: public class BlurAndSharpenDemo extends JFrame implements ActionListener { private JPanel jPanel = new JPanel() //面板jPanel用于容纳模糊、锐化、还原图像按钮 private JButton buttonFile //打开图像文件按钮 private JButton buttonBlur //模糊图像按钮 private JButton buttonSharpen //锐化图像按钮 private JButton buttonReset //还原图像按钮 ImagePanel imagePanel = new ImagePanel() //创建ImagePanel对象用于绘制图像-public class BlurAndSharpenDemo extends JFrame implements ActionListener { private JPanel jPanel = new JPanel() private JButton buttonFile private JButton buttonBlur private JButton buttonSharpen private JButton buttonReset ImagePanel imagePanel = new ImagePanel()
Platform: |
Size: 92160 |
Author: 肖城 |
Hits:
Description: java设置背景图片的源代码,可以实现在JPanel上面绘图-java source code to set the background image can be achieved in the above drawing JPanel
Platform: |
Size: 65536 |
Author: dream |
Hits:
Description: 基于Jpanel的小球碰撞分离的小程序,可添加小球数目-Based Jpanel ball collision separate applet, you can add a small number of ball
Platform: |
Size: 71680 |
Author: 王雨 |
Hits:
Description: 创建一个JFrame对象,设置器关闭操作为推出应用程序 从JPanel 派生出一个绘画类,让其具有一定的绘图功能,设置一个定时器,周期的更新绘画对象,产生动画效果-Create a JFrame object setter closing operation for the introduction of applications derived JPanel a painting class, let it have some drawing functions, a timer is set, the update cycle drawing objects, animate
Platform: |
Size: 5120 |
Author: ww |
Hits:
Description: lzw_copmersion; ... /** Creates a new instance of Main */. public Main() {. } public static void main(String[] args) {. // TODO code application logic here ... class comPanel extends JPanel { ... addActionListener( new ActionListener() {.
NetBeans IDE Java Quick Start Tutorial
Platform: |
Size: 2048 |
Author: krishnakanth
|
Hits:
Description: 运用纯Java来开发有个简单的小游戏:贪吃蛇游戏。其中用到的知识有Java的多线程,Jpanel,和一些简单的逻辑知识。(The use of pure Java to develop a simple game: snake game. The knowledge used is Java multithreading, Jpanel, and some simple logic knowledge.)
Platform: |
Size: 52224 |
Author: 日出东方lx
|
Hits: