FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
processing/app/src/processing/app/About.java at master · botbit/processing · GitHub
botbit
processing
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
processing
/
app
/
src
/
processing
/
app
/
About.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
57 lines (45 loc) · 1.46 KB
Breadcrumbs
processing
/
app
/
src
/
processing
/
app
/
About.java
Copy path
File metadata and controls
57 lines (45 loc) · 1.46 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package
processing
.
app
;
import
java
.
awt
.
Color
;
import
java
.
awt
.
Dimension
;
import
java
.
awt
.
Font
;
import
java
.
awt
.
Frame
;
import
java
.
awt
.
Graphics
;
import
java
.
awt
.
Graphics2D
;
import
java
.
awt
.
Image
;
import
java
.
awt
.
RenderingHints
;
import
java
.
awt
.
Window
;
import
java
.
awt
.
event
.
MouseAdapter
;
import
java
.
awt
.
event
.
MouseEvent
;
public
class
About
extends
Window
{
Image
image
;
int
width
,
height
;
public
About
(
Frame
frame
) {
super
(
frame
);
if
(
Toolkit
.
highResDisplay
()) {
image
=
Toolkit
.
getLibImage
(
"about-2x.jpg"
);
//$NON-NLS-1$
width
=
image
.
getWidth
(
null
) /
2
;
height
=
image
.
getHeight
(
null
) /
2
;
}
else
{
image
=
Toolkit
.
getLibImage
(
"about.jpg"
);
//$NON-NLS-1$
width
=
image
.
getWidth
(
null
);
height
=
image
.
getHeight
(
null
);
}
addMouseListener
(
new
MouseAdapter
() {
public
void
mousePressed
(
MouseEvent
e
) {
dispose
();
}
});
Dimension
screen
=
Toolkit
.
getScreenSize
();
setBounds
((
screen
.
width
-
width
)/
2
, (
screen
.
height
-
height
)/
2
,
width
,
height
);
setVisible
(
true
);
}
public
void
paint
(
Graphics
g
) {
g
.
drawImage
(
image
,
0
,
0
,
width
,
height
,
null
);
Graphics2D
g2
= (
Graphics2D
)
g
;
g2
.
setRenderingHint
(
RenderingHints
.
KEY_TEXT_ANTIALIASING
,
RenderingHints
.
VALUE_TEXT_ANTIALIAS_OFF
);
g
.
setFont
(
new
Font
(
"SansSerif"
,
Font
.
PLAIN
,
11
));
//$NON-NLS-1$
g
.
setColor
(
Color
.
white
);
g
.
drawString
(
Base
.
getVersionName
(),
50
,
30
);
}
}
Back
|
FazBrowse Home
|
New Git URL