public OpenKeystoreJPanel() { super(); labelKeystoreName = new JLabel(); labelKeystoreName.setText("Keystore File"); textKeystoreName = new CFJStringEditor(); textKeystoreName.setEditable(false); textKeystoreName.setEnabled(false); textKeystoreName.setMaxLen(4096); CFBamClientConfigurationFile configFile = swingSchema.getClientConfigurationFile(); String keystoreFileName = configFile.getKeyStore(); textKeystoreName.setText(keystoreFileName); labelKeystorePassword = new JLabel(); labelKeystorePassword.setText("Keystore Password"); textKeystorePassword = new JPasswordField(); actionOk = new ActionOk(); actionCancel = new ActionCancel(); buttonOk = new JButton(actionOk); buttonCancel = new JButton(actionCancel); add(labelKeystoreName); add(textKeystoreName); add(labelKeystorePassword); add(textKeystorePassword); add(buttonOk); add(buttonCancel); Dimension sz = new Dimension(800, 480); setSize(sz); int height = doLayoutRetHeight(); Dimension newSz = new Dimension(800, height); setSize(newSz); }