예제 #1
0
 public void revertVncViewPanel(VncViewPanel panel) throws Exception {
   log.info("revertVncViewPanel");
   DockingLayoutMeetingPanel dockingLayoutMeetingPanel =
       ViewManager.getComponent(DockingLayoutMeetingPanel.class);
   dockingLayoutMeetingPanel.updatePanel(panel, "vncview_" + panel.getUsername());
   MaxVncPanelWindow component = ViewManager.getComponent(MaxVncPanelWindow.class);
   component.setVncViewPanel(null);
   component.dispose();
   panel.getDesktopScrollPane().getComponent(0).repaint();
   panel.getMaxViewButton().setVisible(true);
   panel.getRevertViewButton().setVisible(false);
 }
예제 #2
0
  public void maxVncViewPanel(VncViewPanel panel) throws Exception {
    log.info("maxVncViewPanel");
    MaxVncPanelWindow component = ViewManager.getComponent(MaxVncPanelWindow.class);
    component.setAlwaysOnTop(true);

    Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
    component.setSize(screenSize);
    component.setLocation(0, 0);
    component.getCenterPanel().removeAll();
    Dimension topPanelSize = panel.getTopPanel().getSize();
    panel
        .getDesktopScrollPane()
        .setSize(screenSize.width + 1, screenSize.height - topPanelSize.height - 4);

    component.getCenterPanel().add(panel, BorderLayout.CENTER);
    component.setVncViewPanel(panel);
    component.setVisible(true);
    panel.getDesktopScrollPane().getComponent(0).repaint();

    panel.getMaxViewButton().setVisible(false);
    panel.getRevertViewButton().setVisible(true);
  }