Skip to content

rodriguesabner/JXBrowser-JavaSwing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JXBrowser-JavaSwing

Integrate your system with JXBrowser. (Clone Safari)

Video: https://youtu.be/3C53qRco-Kw

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Built With

  • JXBrowser - The JXBrowser Library
  • License - This is the license I created, you will need it.
Documentation JXBrowser - https://jxbrowser.support.teamdev.com/support/solutions
Tutorial - https://www.youtube.com/watch?v=7rVChaNN33U

Installing

Follow these steps for the integration to work properly.

##ONLY WORKS WITH JDK 1.8!!!!

This is my license, this line of code is MANDATORY to work!

BrowserUtil.setVersion(Version.V6_22);

This is optional, it is for you to create a "profile" for the browser, so it will always save a session of WhatsApp, Facebook, etc ... It's like the history of Google Chrome

BrowserContextParams params = new BrowserContextParams(perfil);
BrowserPreferences.setChromiumSwitches("user-data-dir=" + perfil);
BrowserContext context = new BrowserContext(params);
browser = new Browser(context);

Running the tests

If you want a fixed URL, do not put a String as a parameter, change the String to a true URL, for example: www.google.com. If you want to create something interactive, use the String.

//browser.loadURL(URL);
browser.loadURL("www.google.com");

//Back Page
browser.goBack();

//Forward Page
browser.goForward();

//reload
browser.reload();

Screenshot

Initial Screen

image

Home Screen

image

Moving with cursor.

image

Interacting with our browser.

(fullscreen)

image

image

Multiple Tabs

image

image

About

Faça a integração do Java Swing com o JXBrowser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages