use of com.teamdev.jxbrowser.chromium.swing.BrowserView in project Spark by igniterealtime.
the class EmbeddedBrowserViewer method initializeBrowser.
/**
* Initialization of the BrowserViewer
*/
public void initializeBrowser() {
this.setLayout(new BorderLayout());
final BrowserView view = new BrowserView(browser);
this.add(view, BorderLayout.CENTER);
}
use of com.teamdev.jxbrowser.chromium.swing.BrowserView in project Spark by igniterealtime.
the class SparkMeetPlugin method open.
private void open(String roomUrl, String roomId) {
browser = new Browser();
BrowserView view = new BrowserView(browser);
frame = new JFrame();
frame.add(view, BorderLayout.CENTER);
frame.setSize(width, height);
frame.setVisible(true);
frame.setTitle("Openfire Meetings - " + roomId);
frame.addWindowListener(new java.awt.event.WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
close();
}
});
browser.loadURL(roomUrl);
}
Aggregations