@Override public void setContainer(SContainer c) { container = c; if (container != null) { container.setPreferredSize(this.preferredSize); } }
public void setFullScreen(boolean fullScreen) { if (isDifferent(this.fullScreen, fullScreen)) { boolean oldFullScreen = this.fullScreen; this.fullScreen = fullScreen; if (fullScreen) getContentPane().setPreferredSize(SDimension.FULLAREA); reload(); propertyChangeSupport.firePropertyChange("fullScreen", oldFullScreen, this.fullScreen); } }
/** * Creates an internal frame. * * @return the created panel. */ protected SInternalFrame createSInternalFrame() { SInternalFrame iFrame = new SInternalFrame(); iFrame.setPreferredSize(SDimension.FULLAREA); iFrame.getContentPane().setPreferredSize(SDimension.FULLAREA); iFrame.setHorizontalAlignment(SConstants.LEFT_ALIGN); iFrame.setVerticalAlignment(SConstants.TOP_ALIGN); return iFrame; }
/** * Creates an internal frame. * * @return the created panel. */ protected SInternalFrame createSInternalFrame() { SInternalFrame iFrame = new SInternalFrame(); iFrame.setPreferredSize(SDimension.FULLAREA); iFrame.getContentPane().setPreferredSize(SDimension.FULLAREA); iFrame.setHorizontalAlignment(SConstants.LEFT_ALIGN); iFrame.setVerticalAlignment(SConstants.TOP_ALIGN); return iFrame; }
imageLabel.setToolTipText(null); optionData.setPreferredSize(SDimension.FULLWIDTH); optionButtons.add(optionYes, "YES"); optionButtons.add(optionOK, "OK"); optionButtons.setPreferredSize(SDimension.FULLWIDTH); optionButtons.setStyle("SOptionPaneButtons");
private SFrame createControllerFrame() { SFrame frame = new SFrame(); frame .setPreferredSize(new SDimension(frameWidth, frameHeight/* WingsUtil.FULL_DIM_PERCENT */)); cardPanel = new SPanel(new SCardLayout()); cardPanel.setPreferredSize(SDimension.FULLAREA); frame.getContentPane().add(createApplicationMenuBar(), SBorderLayout.NORTH); frame.getContentPane().add(cardPanel, SBorderLayout.CENTER); frame.getContentPane().setPreferredSize(SDimension.FULLAREA); return frame; }
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); }