Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV TOOLS ca-certificates curl jq openjdk-17-jdk maven
RUN apt-get -q update && \
apt-get -q install -y --no-install-recommends $TOOLS

#Copy scipts, sources and templates
#Copy scripts, sources and templates
COPY scripts scripts
COPY src src
COPY pom.xml pom.xml
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/me/friwi/jcefsampleapp/MainFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class MainFrame extends JFrame {
private final CefApp cefApp_;
private final CefClient client_;
private final CefBrowser browser_;
private final Component browerUI_;
private final Component browserUI_;
private boolean browserFocus_ = true;

/**
Expand Down Expand Up @@ -81,7 +81,7 @@ public void stateHasChanged(org.cef.CefApp.CefAppState state) {
// instance.
cefApp_ = builder.build();

// (2) JCEF can handle one to many browser instances simultaneous. These
// (2) JCEF can handle one to many browser instances simultaneously. These
// browser instances are logically grouped together by an instance of
// the class CefClient. In your application you can create one to many
// instances of CefClient with one to many CefBrowser instances per
Expand Down Expand Up @@ -109,12 +109,12 @@ public void stateHasChanged(org.cef.CefApp.CefAppState state) {
//
// CefBrowser has methods like "goBack()", "goForward()", "loadURL()",
// and many more which are used to control the behavior of the displayed
// content. The UI is held within a UI-Compontent which can be accessed
// content. The UI is held within a UI-Component which can be accessed
// by calling the method "getUIComponent()" on the instance of CefBrowser.
// The UI component is inherited from a java.awt.Component and therefore
// it can be embedded into any AWT UI.
browser_ = client_.createBrowser(startURL, useOSR, isTransparent);
browerUI_ = browser_.getUIComponent();
browserUI_ = browser_.getUIComponent();

// (5) For this minimal browser, we need only a text field to enter an URL
// we want to navigate to and a CefBrowser window to display the content
Expand Down Expand Up @@ -169,7 +169,7 @@ public void onTakeFocus(CefBrowser browser, boolean next) {
// (6) All UI components are assigned to the default content pane of this
// JFrame and afterwards the frame is made visible to the user.
getContentPane().add(address_, BorderLayout.NORTH);
getContentPane().add(browerUI_, BorderLayout.CENTER);
getContentPane().add(browserUI_, BorderLayout.CENTER);
pack();
setSize(800, 600);
setVisible(true);
Expand Down