FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
webview_java/Example.java at main · faveoled/webview_java · GitHub
faveoled
/
webview_java
Public
forked from
webview/webview_java
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
webview_java
/
Example.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (15 loc) · 573 Bytes
Breadcrumbs
webview_java
/
Example.java
Copy path
File metadata and controls
21 lines (15 loc) · 573 Bytes
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
package
dev
.
webview
;
public
class
Example
{
public
static
void
main
(
String
[]
args
) {
Webview
wv
=
new
Webview
(
true
);
// Can optionally be created with an AWT component to be painted on.
// Calling `await echo(1,2,3)` will return `[1,2,3]`
wv
.
bind
(
"echo"
, (
arguments
) -> {
return
arguments
;
});
wv
.
setTitle
(
"My Webview App"
);
wv
.
setSize
(
800
,
600
);
wv
.
loadURL
(
"https://google.com"
);
// Run the webview event loop, the webview is fully disposed when this returns.
wv
.
run
();
}
}
Back
|
FazBrowse Home
|
New Git URL