Advertisement
jotazetaec

Untitled

Jun 15th, 2023
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1.  
  2. vlyMainOptions.getBtnDownload().addClickListener(new ClickListener() {
  3.  
  4. @Override
  5. public void buttonClick(ClickEvent event) {
  6. // TODO Auto-generated method stub
  7. String url = "https://inscripciones.utm.edu.ec/consulta_certificado_ivento/";
  8. // String url = "https://app.utm.edu.ec/sga/";
  9.  
  10. Window window = new Window("Certificados");
  11. window.setWidth("800px");
  12. window.setHeight("650px");
  13. window.center();
  14.  
  15. BrowserFrame browserFrame = new BrowserFrame(null, new ExternalResource(url));
  16. browserFrame.setWidth("100%");
  17. browserFrame.setHeight("100%");
  18.  
  19. window.setContent(browserFrame);
  20.  
  21. UI.getCurrent().addWindow(window);
  22. }
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement