Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
御承扬
java1
提交
7b0a1794
J
java1
项目概览
御承扬
/
java1
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
java1
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7b0a1794
编写于
8月 14, 2019
作者:
御
御承扬
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update
上级
83b6817b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
75 addition
and
25 deletion
+75
-25
.idea/workspace.xml
.idea/workspace.xml
+30
-25
src/AWT绘图/ColorTest.java
src/AWT绘图/ColorTest.java
+45
-0
未找到文件。
.idea/workspace.xml
浏览文件 @
7b0a1794
...
...
@@ -2,7 +2,7 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"4e65795a-6659-4829-a5e6-120206826e71"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/src/AWT绘图/
Draw
Test.java"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/AWT绘图/
Color
Test.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
</list>
<list
id=
"cbcb3066-613e-44bd-84c2-b0cf22cc5a78"
name=
"New changelist"
comment=
"New changelist"
/>
...
...
@@ -40,6 +40,7 @@
<option
value=
"Class"
/>
</list>
</option>
<option
name=
"SCHEME"
value=
"Project"
/>
</component>
<component
name=
"FindBugs-IDEA-Workspace"
>
<analyzeAfterCompile>
true
</analyzeAfterCompile>
...
...
@@ -104,7 +105,7 @@
<property
name=
"project.structure.proportion"
value=
"0.15"
/>
<property
name=
"project.structure.side.proportion"
value=
"0.2"
/>
<property
name=
"run.code.analysis.last.selected.profile"
value=
"pProject Default"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"
MTConfigurable
"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"
preferences.pluginManager
"
/>
</component>
<component
name=
"RecentsManager"
>
<key
name=
"CopyFile.RECENT_KEYS"
>
...
...
@@ -129,9 +130,9 @@
</list>
</option>
</component>
<component
name=
"RunManager"
selected=
"应用程序.
Draw
Test"
>
<configuration
name=
"
Draw
Test"
type=
"Application"
factoryName=
"应用程序"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"AWT绘图.
Draw
Test"
/>
<component
name=
"RunManager"
selected=
"应用程序.
Color
Test"
>
<configuration
name=
"
Color
Test"
type=
"Application"
factoryName=
"应用程序"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"AWT绘图.
Color
Test"
/>
<module
name=
"IDEA_JAVA"
/>
<extension
name=
"coverage"
>
<pattern>
...
...
@@ -143,12 +144,12 @@
<option
name=
"Make"
enabled=
"true"
/>
</method>
</configuration>
<configuration
name=
"
FileFilter
Test"
type=
"Application"
factoryName=
"应用程序"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"
高级Swing组件.FileFilter
Test"
/>
<configuration
name=
"
Draw
Test"
type=
"Application"
factoryName=
"应用程序"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"
AWT绘图.Draw
Test"
/>
<module
name=
"IDEA_JAVA"
/>
<extension
name=
"coverage"
>
<pattern>
<option
name=
"PATTERN"
value=
"
高级Swing组件
.*"
/>
<option
name=
"PATTERN"
value=
"
AWT绘图
.*"
/>
<option
name=
"ENABLED"
value=
"true"
/>
</pattern>
</extension>
...
...
@@ -197,11 +198,11 @@
</configuration>
<recent_temporary>
<list>
<item
itemvalue=
"应用程序.ColorTest"
/>
<item
itemvalue=
"应用程序.DrawTest"
/>
<item
itemvalue=
"应用程序.TableModelTest"
/>
<item
itemvalue=
"应用程序.JTableTest"
/>
<item
itemvalue=
"应用程序.JProgressBarTest"
/>
<item
itemvalue=
"应用程序.FileFilterTest"
/>
</list>
</recent_temporary>
</component>
...
...
@@ -315,21 +316,11 @@
<workItem
from=
"1565308932531"
duration=
"46000"
/>
<workItem
from=
"1565309017412"
duration=
"6007000"
/>
<workItem
from=
"1565484068237"
duration=
"110000"
/>
<workItem
from=
"1565484213011"
duration=
"2636000"
/>
</task>
<task
id=
"LOCAL-00030"
summary=
"Update"
>
<created>
1561365483720
</created>
<option
name=
"number"
value=
"00030"
/>
<option
name=
"presentableId"
value=
"LOCAL-00030"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1561365483721
</updated>
</task>
<task
id=
"LOCAL-00031"
summary=
"Update"
>
<created>
1561367943087
</created>
<option
name=
"number"
value=
"00031"
/>
<option
name=
"presentableId"
value=
"LOCAL-00031"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1561367943087
</updated>
<workItem
from=
"1565484213011"
duration=
"2675000"
/>
<workItem
from=
"1565656362641"
duration=
"1123000"
/>
<workItem
from=
"1565686873839"
duration=
"81000"
/>
<workItem
from=
"1565769172876"
duration=
"227000"
/>
<workItem
from=
"1565769434684"
duration=
"1702000"
/>
</task>
<task
id=
"LOCAL-00032"
summary=
"Update"
>
<created>
1561384305542
</created>
...
...
@@ -660,7 +651,21 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1565484375656
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"79"
/>
<task
id=
"LOCAL-00079"
summary=
"Update"
>
<created>
1565488257444
</created>
<option
name=
"number"
value=
"00079"
/>
<option
name=
"presentableId"
value=
"LOCAL-00079"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1565488257444
</updated>
</task>
<task
id=
"LOCAL-00080"
summary=
"Update"
>
<created>
1565686907429
</created>
<option
name=
"number"
value=
"00080"
/>
<option
name=
"presentableId"
value=
"LOCAL-00080"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1565686907430
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"81"
/>
<servers
/>
</component>
<component
name=
"TodoView"
selected-index=
"3"
>
...
...
src/AWT绘图/ColorTest.java
0 → 100644
浏览文件 @
7b0a1794
// >= JDK 1.8
// encoding:utf-8
// @software:IntelliJ IDEA
// @user:彭友聪
// @date:2019/08/14
// @time:下午 3:59
// @project:IDEA_JAVA
// @file:ColorTest.java
// @Author:御承扬
//@E-mail:2923616405@qq.com
package
AWT
绘图
;
import
javax.swing.*
;
import
java.awt.*
;
public
class
ColorTest
extends
JFrame
{
static
class
CanvasTest
extends
Canvas
{
CanvasTest
()
{
}
public
final
void
paint
(
Graphics
g
){
super
.
paint
(
g
);
Graphics2D
g2
=
(
Graphics2D
)
g
;
g2
.
setColor
(
Color
.
RED
);
g2
.
drawLine
(
5
,
30
,
100
,
30
);
}
}
private
void
initialize
(){
this
.
setSize
(
300
,
200
);
setDefaultCloseOperation
(
WindowConstants
.
EXIT_ON_CLOSE
);
add
(
new
CanvasTest
());
// 设置窗体面板为绘图面板对象
this
.
setTitle
(
"设置颜色"
);
}
public
ColorTest
()
{
super
();
initialize
();
}
public
static
void
main
(
String
[]
args
)
{
ColorTest
frame
=
new
ColorTest
();
frame
.
setVisible
(
true
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录