Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
御承扬
java1
提交
97a22735
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 搜索 >>
提交
97a22735
编写于
8月 15, 2019
作者:
御
御承扬
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update
上级
396495bb
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
62 addition
and
18 deletion
+62
-18
.idea/workspace.xml
.idea/workspace.xml
+19
-18
src/AWT绘图/DrawStringTest.java
src/AWT绘图/DrawStringTest.java
+43
-0
未找到文件。
.idea/workspace.xml
浏览文件 @
97a22735
...
...
@@ -2,8 +2,8 @@
<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绘图/
Stroke
Test.java"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/
src/AWT绘图/ColorTest.java"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/AWT绘图/ColorTest.java
"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/AWT绘图/
DrawString
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"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
...
@@ -130,7 +130,7 @@
</list>
</option>
</component>
<component
name=
"RunManager"
selected=
"应用程序.
Stroke
Test"
>
<component
name=
"RunManager"
selected=
"应用程序.
DrawString
Test"
>
<configuration
name=
"ColorTest"
type=
"Application"
factoryName=
"应用程序"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"AWT绘图.ColorTest"
/>
<module
name=
"IDEA_JAVA"
/>
...
...
@@ -144,8 +144,8 @@
<option
name=
"Make"
enabled=
"true"
/>
</method>
</configuration>
<configuration
name=
"DrawTest"
type=
"Application"
factoryName=
"应用程序"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"AWT绘图.DrawTest"
/>
<configuration
name=
"Draw
String
Test"
type=
"Application"
factoryName=
"应用程序"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"AWT绘图.Draw
String
Test"
/>
<module
name=
"IDEA_JAVA"
/>
<extension
name=
"coverage"
>
<pattern>
...
...
@@ -157,12 +157,12 @@
<option
name=
"Make"
enabled=
"true"
/>
</method>
</configuration>
<configuration
name=
"
JTable
Test"
type=
"Application"
factoryName=
"应用程序"
temporary=
"true"
nameIsGenerated=
"true"
>
<option
name=
"MAIN_CLASS_NAME"
value=
"
高级Swing组件.JTable
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>
...
...
@@ -198,11 +198,11 @@
</configuration>
<recent_temporary>
<list>
<item
itemvalue=
"应用程序.DrawStringTest"
/>
<item
itemvalue=
"应用程序.StrokeTest"
/>
<item
itemvalue=
"应用程序.ColorTest"
/>
<item
itemvalue=
"应用程序.DrawTest"
/>
<item
itemvalue=
"应用程序.TableModelTest"
/>
<item
itemvalue=
"应用程序.JTableTest"
/>
</list>
</recent_temporary>
</component>
...
...
@@ -320,14 +320,8 @@
<workItem
from=
"1565656362641"
duration=
"1123000"
/>
<workItem
from=
"1565686873839"
duration=
"81000"
/>
<workItem
from=
"1565769172876"
duration=
"227000"
/>
<workItem
from=
"1565769434684"
duration=
"2339000"
/>
</task>
<task
id=
"LOCAL-00033"
summary=
"Update"
>
<created>
1561385104652
</created>
<option
name=
"number"
value=
"00033"
/>
<option
name=
"presentableId"
value=
"LOCAL-00033"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1561385104652
</updated>
<workItem
from=
"1565769434684"
duration=
"2523000"
/>
<workItem
from=
"1565856911163"
duration=
"670000"
/>
</task>
<task
id=
"LOCAL-00034"
summary=
"Update"
>
<created>
1561432271697
</created>
...
...
@@ -665,7 +659,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1565771939011
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"82"
/>
<task
id=
"LOCAL-00082"
summary=
"Update"
>
<created>
1565772726248
</created>
<option
name=
"number"
value=
"00082"
/>
<option
name=
"presentableId"
value=
"LOCAL-00082"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1565772726248
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"83"
/>
<servers
/>
</component>
<component
name=
"TodoView"
selected-index=
"3"
>
...
...
src/AWT绘图/DrawStringTest.java
0 → 100644
浏览文件 @
97a22735
// >= JDK 1.8
// encoding:utf-8
// @software:IntelliJ IDEA
// @user:彭友聪
// @date:2019/08/15
// @time:下午 4:18
// @project:IDEA_JAVA
// @file:DrawStringTest.java
// @Author:御承扬
//@E-mail:2923616405@qq.com
package
AWT
绘图
;
import
javax.swing.*
;
import
java.awt.*
;
public
class
DrawStringTest
extends
JFrame
{
static
class
CanvasTest
extends
Canvas
{
CanvasTest
()
{
}
public
final
void
paint
(
Graphics
g
){
super
.
paint
(
g
);
Graphics2D
g2
=
(
Graphics2D
)
g
;
g2
.
setColor
(
Color
.
BLUE
);
Font
font
=
new
Font
(
"楷体"
,
Font
.
BOLD
,
16
);
g2
.
setFont
(
font
);
g2
.
drawString
(
"Done is better than perfect."
,
20
,
30
);
g2
.
drawString
(
"——比完美更重要是完成。"
,
60
,
60
);
}
}
private
DrawStringTest
()
{
this
.
setSize
(
310
,
140
);
setDefaultCloseOperation
(
WindowConstants
.
EXIT_ON_CLOSE
);
add
(
new
CanvasTest
());
this
.
setTitle
(
"绘制文本"
);
}
public
static
void
main
(
String
[]
args
)
{
DrawStringTest
frame
=
new
DrawStringTest
();
frame
.
setVisible
(
true
);
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录