List of usage examples for com.vaadin.ui BrowserFrame setWidth
@Override public void setWidth(float width, Unit unit)
From source file:cb_server.LogInWindow.java
License:Open Source License
private LogInWindow() { super("Get API Key"); // Set window caption this.setWidth(50, Unit.PERCENTAGE); this.setHeight(80, Unit.PERCENTAGE); center();/*from w w w.j a va 2 s .c o m*/ URL url; try { String oAuthUrl = CB_Api.getGcAuthUrl(); url = new URL(oAuthUrl); ExternalResource extRes = new ExternalResource(url); extRes.getURL(); BrowserFrame browser = new BrowserFrame("", extRes); browser.setWidth(100, Unit.PERCENTAGE); browser.setHeight(100, Unit.PERCENTAGE); content = new VerticalLayout(); content.setWidth(100, Unit.PERCENTAGE); content.setHeight(100, Unit.PERCENTAGE); setContent(content); // browser.addListener(eventType, target, method); content.addComponent(browser); } catch (MalformedURLException e) { e.printStackTrace(); } }