Posted on
JxBrowser 2.0 Beta
API changes
- JxBrowser 1.x classes and interfaces from
com.teamdev.jxbrowser.*package were moved tocom.teamdev.jxbrowser1.*. - JxBrowser 2.x classes and interfaces from
com.teamdev.jxbrowser2.*package were moved tocom.teamdev.jxbrowser.*. - Package
com.teamdev.jxbrowser2.promptservicewas renamed tocom.teamdev.jxbrowser.prompt. - Package
com.teamdev.jxbrowser2.scriptwatcherwas renamed tocom.teamdev.jxbrowser.script. - Updated
ContextMenuHandler.showContextMenu(ContextMenuEvent event)method so that it doesn’t returnJPopupMenuinstance anymore. It allows displaying any contextual menu (not only Swing). - The
com.teamdev.jxbrowser2.WebProgressinterface was renamed tocom.teamdev.jxbrowser.ContentLoading. - Removed
com.teamdev.jxbrowser2.Synchronousannotation. - The
NewWindowContainer.setBrowser(Browser browser)method was renamed toNewWindowContainer.insertBrowser(Browser browser). - The
com.teamdev.jxbrowser2.NewWindowInfoclass was renamed tocom.teamdev.jxbrowser.NewWindowParams. - The
com.teamdev.jxbrowser2.events.WebEventclass was renamed tocom.teamdev.jxbrowser.events.BrowserEvent. - The
com.teamdev.jxbrowser2.events.HistoryChangeEvent.ChangeTypeis moved tocom.teamdev.jxbrowser.events.HistoryChangeType. - Changed methods signatures in
com.teamdev.jxbrowser.prompt.PromptServiceinterface.
New features
- Cookie management functionality (IE engine) - allows receiving, updating, deleting
Browsercookies. - Cancel navigation functionality (IE, Mozilla, WebKit engines) - allows receiving notification before web page loading starts and canceling navigation if needed.
- MIME type handling functionality (WebKit engine) - allows making a decision whether to display content with a specified MIME type or not.
- Added
Navigation.waitReadymethod that allows blocking current thread execution until document is loaded completely.
Improvements
NewWindowHandlershould provide a new window bounds according to passed window features throughwindow.openJavaScript function.
Resolved issues
- Load URL with POST data hang on Mozilla engine.
DefaultNewWindowManagerdoesn’t close JFrame afterwindow.closeJavaScript is invoked.- Mozilla engine hangs on
printPreviewor print method.
Follow @JxBrowser to get notified of the library updates.
Subscribe to our RSS feed to get instant updates on new releases.
Subscribe to get notifications about the latest releases.