• 大小: 731KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-02
  • 语言: Java
  • 标签: java  GUI  绘图板  

资源简介

小型的绘图板程序(采用多文档结构),包括基本的菜单栏、工具栏、工具箱、绘图区域以及状态栏。   (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\frame\CloseAllFileListener.class

     文件       7031  2012-12-30 21:15  YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\frame\GraphicsPane.class

     文件       3179  2012-12-30 21:15  YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\frame\Insideframe.class

     文件       1446  2012-12-30 21:15  YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\frame\InsideframeListener.class

     文件       3906  2012-12-30 21:15  YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\frame\InsidePanel$MouseListenerAdapter.class

     文件       2681  2012-12-30 21:15  YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\frame\InsidePanel$MouseMotionListener.class

     文件       5430  2012-12-30 21:15  YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\frame\InsidePanel.class

     文件       1702  2012-12-30 21:15  YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\frame\Mainframe.class

     文件       1857  2012-12-30 21:15  YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\frame\MenuBar$1.class

     文件       1275  2012-12-30 21:15  YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\frame\MenuBar$10.class

     文件       1275  2012-12-30 21:15  YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\frame\MenuBar$11.class

     文件       1275  2012-12-30 21:15  YRPaintingBoard\YRPaintingBoard\bin\com\yrpaintingboard\frame\MenuBar$12.class

............此处省略142个文件信息

评论

共有 条评论