/** * Shows this frame. This means it gets registered at the session. * * @see org.wings.session.Session#getFrames() */ public void show() { setVisible(true); }
/** * Hides this frame. This means it gets removed at the session. * * @see org.wings.session.Session#getFrames() */ public void hide() { setVisible(false); }
private void displayControllerFrame() { controllerFrame = createControllerFrame(); updateFrameTitle(); controllerFrame.setVisible(true); }
errorFrame.setVisible(true); errorFrame.write(device); errorFrame.setVisible(false);
private void createControllerFrame() { controllerFrame = new SFrame(); String w = "95%"; String h = "768px"; if (getFrameWidth() != null) { w = getFrameWidth().intValue() + "px"; } if (getFrameHeight() != null) { h = getFrameHeight().intValue() + "px"; } controllerFrame.setPreferredSize(new SDimension(w, h)); controllerFrame.getContentPane().setPreferredSize(SDimension.FULLAREA); cardPanel = new SPanel(new SCardLayout()); cardPanel.setPreferredSize(SDimension.FULLAREA); controllerFrame.getContentPane().add(cardPanel, SBorderLayout.CENTER); statusBar = new SLabel(); statusBar.setBorder(new SLineBorder(1)); statusBar.setVisible(false); controllerFrame.getContentPane().add(statusBar, BorderLayout.SOUTH); updateFrameTitle(); controllerFrame.setVisible(true); }