搜索资源列表
WindowEvents
- 掌握java.io.swing中容器类的使用方法,如:JFrame、JPanel等; 2.掌握布局管理器的使用方法,如:FlowLayout、BorderLayout等; 3.掌握java.io.swing中组件类的作用,如:菜单、工具栏、按钮等; 4.掌握Java事件驱动程序设计-委托模型的设计方法。-master java.io.swing Vessel type of use, such as : class, JPanel; 2. Master layout manager to use
shiyan3
- 实验三 布局管理器的使用 目的 1. 掌握布局管理器的作用。 2. 能熟练使用FlowLayout、GridLayout、BorderLayout、CardLayout布局管理器。 3. 掌握JFrame、JPanel 默认布局管理器。 4. 掌握使用多个JPanel,并配合多个布局管理器设计较美观的界面。
snake(java)
- 设计思路 首先该程序主要知识点就是图形用户界面,对程序界面的基本结构设计如下 建立框架作为可视化程序界面的基本界面,考虑到要在程序中添加各种组件,所以采用面板比较合理,故将类将要继承JPanel类。 接下来就是在程序中添加各类元素,其中包括有蛇体,食物(蛇体和食物都是由小方形块构成,采用不同的颜色区别,);另外还计分器(即蛇的长度乘以10).计关器。 再者就是程序的运动过程设计:其中应包括蛇的移动.方向的改变。 最后就是蛇的状态判断:其中应包括蛇是否吃到时了食物,是否有碰壁,
细分时钟刻度算法.txt
- import java.awt.*; import javax.swing.*; public class Exercise8_12 extends JFrame { // Main method with three auguments: // args[0]: hour // args[1]: minute // args[2]: second public static void main(String[] args) { // Declare hour, minute, and seco
Calculator
- 本程序是用java编写的类似与windows下的计算器程序!是继承于jpanel类编写而成的!实现了很多功能!-This procedure is written in Java similar with Windows of the calculator program! In jpanel class is inherited and compiled! Realized many function!
xueshengguanlilianjieshujukude
- 添加背景图片的代码重写了paint方法,它本身就是一个JPanel-Background image code
a
- Windows计算器,是Windows操作系统自带计算器,,可以帮助用户完成数据的运算,它可分为“标准型”和“科学型”,本章的仿Windows计算器是标准型的Java实现,标准型Windows计算器实现的主要功能有:四则运算;求倒数;求开方;存储计算结果;读取计算结果;累积计算结果。 使用到JFrame和JPanel两个Swing容器,使用到JTextField和JButton两个Swing容器,使用BorderLayout和GridLayout做两个布局器,以及使用到事件、事件监听器和事
TabbedPaneDemo
- Java JPanel中的分页代码,初学者做的。-Java JPanel in pagination code, beginners do.
TestPanel
- JPanel,JtestArea,JScrollPane,JFrame的简单范例-JPanel, JtestArea, JScrollPane, JFrame simple examples
Background
- 一个制作小游戏的面板程序,加进了有意思的图片。制作了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
JMF_Movie_Player_funcional
- this an example of class suporting video on java. This code use the classes of the JMF API, this example describes a video player with function os JPanel, making easy to add in JFrames and anothers JPanels-this is an example of class suporting vide
addproducts
- 主要通过java的界面JButton实现商品的添加和删除 通过在jpanel上显示-JButton mainly through the java interface to add and remove realization of goods through the jpanel show! ! !
ImagepanelSample
- Java Example For USe Jpanel With Background
src
- 使用image4j,是java可以读取bmp格式的图片,并将其显示在JPanel上。-Use image4j, is a java can read bmp format images, and displays them in the JPanel.
FileCatalogLoader
- Class CatalogGUI instantiates the Swing components, arranges the components in a window, and handles the events generated by the list. In this assignment, you will implement the method getDataFieldsPanel that returns a JPanel displaying the product d
lab67
- Some programs for java about boolean and jpanel
yuanma
- java_时间计算程序 主程序 ----------------------------------------------------------------------------------- package com.piccgz.chenym.javadate import java.awt.BorderLayout import java.awt.Dimension import javax.swing.JFrame import javax.swi
test1
- 这段程序代码主要是为读者展示如何使用JPanel中间容器-This code is mainly to show the reader how to use the middle of the container JPanel
game
- 一个微型桌面游戏,了解关于JApplet以及JPanel非常有用-if you wanna learn about japplet and jpanel, download this
PushBox4.0
- java开发的推箱子小游戏,主要练习使用ATW、Swing图形化界面,还有涉及数组知识-Color、HeadlessException、KeyEvent、KeyListener、ImageIcon、JFrame、JLabel、import javax.swing.JOptionPane、 JPanel、WindowConstants