@SuppressWarnings("deprecation") private void initLayout() { ExternalResource ico_1 = new ExternalResource( "http://sphotos-d.ak.fbcdn.net/hphotos-ak-ash3/574636_108340259349575_2027925130_n.jpg"); Link image1 = new Link(null, new ExternalResource("http://www.uib.no/rg/probe")); image1.setIcon(ico_1); image1.setTargetName("_blank"); Link image2 = new Link(null, new ExternalResource("http://www.uib.no/")); image2.setIcon( new ExternalResource( "http://sphotos-d.ak.fbcdn.net/hphotos-ak-prn1/533227_118477988335802_947238298_n.jpg")); image2.setTargetName("_blank"); image2.setWidth("105px"); Link image3 = new Link(null, new ExternalResource("http://www.stiftkgj.no/")); image3.setIcon( new ExternalResource( "http://sphotos-h.ak.fbcdn.net/hphotos-ak-snc6/188329_108340226016245_257713989_n.jpg")); image3.setTargetName("_blank"); MainWindow mw = new MainWindow(url, dbName, driver, userName, password, image1, image2, image3); // mw.setWidth("100%"); // mw.setHeight("100%"); mw.setStyle(Reindeer.WINDOW_LIGHT); Window w = new Window("CSF Proteome Resource (CSF-PR)", mw); setMainWindow(w); // mw.setBodyHeight(); }