/** * Constructor to run this application in a stand-alone window. * * @param ownerFrame the frame the application will be displayed in * @throws S3ServiceException */ public CockpitLite(JFrame ownerFrame, Properties standAloneArgumentProperties) throws S3ServiceException { mCredentialProvider = new BasicCredentialsProvider(); this.ownerFrame = ownerFrame; this.standAloneArgumentProperties = standAloneArgumentProperties; isStandAloneApplication = true; init(); ownerFrame.getContentPane().add(this); ownerFrame.setBounds(this.getBounds()); ownerFrame.setVisible(true); }
/** * Constructor to run this application in a stand-alone window. * * @param ownerFrame the frame the application will be displayed in * @throws S3ServiceException */ public CockpitLite(JFrame ownerFrame, Properties standAloneArgumentProperties) throws S3ServiceException { mCredentialProvider = new BasicCredentialsProvider(); this.ownerFrame = ownerFrame; this.standAloneArgumentProperties = standAloneArgumentProperties; isStandAloneApplication = true; init(); ownerFrame.getContentPane().add(this); ownerFrame.setBounds(this.getBounds()); ownerFrame.setVisible(true); }