资源简介
小型的绘图板程序(采用多文档结构),包括基本的菜单栏、工具栏、工具箱、绘图区域以及状态栏。
(1)菜单栏:主要包含文件、编辑、设置、窗口、帮助、界面风格这六项常用菜单。其中文件包含新建、打开、关闭、保存、另存为、退出;编辑包含清空画板;设置包含背景颜色、线条颜色、画笔粗细;窗口包含层叠窗口、横向平铺、纵向平铺、工具栏、工具箱、状态栏;帮助包含关于、帮助;界面风格包含Java Look & Feel 、 motif Look & Feel 、 Windows Style Look & Feel。
(2)工具栏: 包含菜单栏主要功能并附加文本输入的格式,字体风格、大小等;
(3)工
代码片段和文件信息
/**
*
*/
package com.yrpaintingbaard.daomain;
import java.awt.Dimension;
import java.awt.Toolkit;
import com.yrpaintingboard.frame.Mainframe;
/**
* @author Administrator
*
*/
public class PaintingBoard {
/**
* @param args
*/
public static void main(String[] args) {
/*
* 此类是所有 Abstract Window Toolkit 实际实现的抽象超类。 Toolkit
* 的子类被用于将各种组件绑定到特定本机工具包实现
*/
Toolkit tk = Toolkit.getDefaultToolkit();
// Dimension 类封装单个对象中组件的宽度和高度(精确到整数)
Dimension screenSize = tk.getScreenSize();
// 得到的screeSize同屏幕大小,首先调整绘图板大小
screenSize.setSize(screenSize.getWidth() - 500
screenSize.getHeight() - 250);
// 声明一个绘图板主框架对象
Mainframe mainframe = new Mainframe(“绘图板“ screenSize);
// 设置本绘图板主框架的屏幕位置
mainframe.setLocation(50 50);
// 使绘图板运行时的界面可
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 806848 2012-12-31 10:53 YRPaintingBoard\JAVA 设计报告.doc
文件 301 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\.classpath
文件 391 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\.project
文件 629 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\.settings\org.eclipse.jdt.core.prefs
文件 1125 2012-12-30 21:16 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingbaard\daomain\PaintingBoard.class
文件 1098 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\Circle.class
文件 1047 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\CircleRect.class
文件 1110 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\FullCircle.class
文件 1059 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\FullCircleRect.class
文件 1030 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\FullOval.class
文件 1030 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\FullRect.class
文件 913 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\Line.class
文件 1018 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\Oval.class
文件 2756 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\PaintGraphic.class
文件 919 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\Pencil.class
文件 1018 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\Rect.class
文件 927 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\Rubber.class
文件 1045 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\drawing\Word.class
文件 1258 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\fr
文件 7031 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\fr
文件 3179 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\fr
文件 1446 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\fr
文件 3906 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\fr
文件 2681 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\fr
文件 5430 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\fr
文件 1702 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\fr
文件 1857 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\fr
文件 1275 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\fr
文件 1275 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\fr
文件 1275 2012-12-30 21:15 YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\fr
............此处省略142个文件信息
- 上一篇:java课程设计-超简易的贪吃蛇
- 下一篇:一个从数据库中查询数据的jsp动态网页
相关资源
- java快捷键工具箱(快速打开本地应用
- java 飞机大战(面向对象源码)
- java 跑马程序
- 飞机大战小游戏源码(java Swing)
- java入门137:清理指定目录下的.tmp文件
- java删除文件夹中所有文件
- java重命名RAR压缩包中文件
- java显示指定类型的文件(按文件后缀
- java控制台(命令行)输入交互
- java 自定义表头(列头增加icon图标)
- Java入门-控件的排布(2).zip
- Java入门-显示多种字体(8).zip
- Java入门-使用表格显示查询结果(77)
- Java入门-取得目录文件信息(50).zi
- Java入门-zip压缩包查看程序(56).zi
- Java入门-阴影文字(26).zip
- Java入门-彩色列表框(4).zip
- Java入门-程序启动界面(20).zip
- Java入门-常用图形的绘制与填充(47)
- Java入门-从压缩包中提取文件(55)
- Java入门-滑杆演示(19).zip
- Java入门-图片倒影(34).zip
- Java入门-3D文字(27).zip
- Java入门-移动的遮照效果(45).zip
- Java入门-自定义光标(23).zip
- Java入门-图片火焰效果(32).zip
- Java入门-简单的文本编辑器(12).zi
- Java入门-产生自己的控件(1).zip
- Java入门-圆形的按钮(5).zip
- Java入门-不规则图形的绘制(48).zi
评论
共有 条评论