Buggy code:
public class SecurityPanel extends DefaultPanel implements ActionListener { private JLabel idLabel ; private JTextField idTextField ; private JLabel typeLabel ; private JComboBox typeComboBox ; private JLabel pathLabel ; private JButton pathButton ; private JCheckBox enableCheckBox ; private JCheckBox alwaysSignCheckBox ; private JCheckBox alwaysEncryptCheckBox ; private PGPItem item ; public SecurityPanel ( PGPItem item ) { } protected void updateComponents ( boolean b ) { } protected void layoutComponents ( ) { GridBagLayout layout = new GridBagLayout ( ) ; GridBagConstraints c = new GridBagConstraints ( ) ; setLayout ( new BorderLayout ( ) ) ; setBorder ( BorderFactory . createEmptyBorder ( 5 , 5 , 5 , 5 ) ) ; JPanel mainMiddle = new JPanel ( ) ; mainMiddle . setLayout ( new BorderLayout ( ) ) ; JPanel middle = new JPanel ( ) ; <START_BUG> middle . setBorder ( BorderFactory . createTitledBorder ( BorderFactory . createEtchedBorder ( ) , MailResourceLoader . getString ( "dialog" , "account" , "_PGP_(Pretty_Good_Privacy)_Options" ) ) ) ; <END_BUG> middle . setLayout ( new BorderLayout ( ) ) ; JPanel enablePanel = new JPanel ( ) ; enablePanel . setBorder ( BorderFactory . createEmptyBorder ( 0 , 10 , 0 , 10 ) ) ; enablePanel . setLayout ( new BoxLayout ( enablePanel , BoxLayout . X_AXIS ) ) ; enablePanel . add ( enableCheckBox ) ; enablePanel . add ( Box . createHorizontalGlue ( ) ) ; layout = new GridBagLayout ( ) ; c = new GridBagConstraints ( ) ; c = new GridBagConstraints ( ) ; c . gridwidth = GridBagConstraints . REMAINDER ; c . gridx = 0 ; c . weightx = 1.0 ; c . anchor = GridBagConstraints . WEST ; layout . setConstraints ( enablePanel , c ) ; add ( enablePanel , BorderLayout . NORTH ) ; JPanel innerPanel = new JPanel ( ) ; innerPanel . setBorder ( BorderFactory . createEmptyBorder ( 5 , 5 , 5 , 5 ) ) ; innerPanel . setLayout ( new BorderLayout ( ) ) ; JPanel leftPanel = new JPanel ( ) ; leftPanel . setLayout ( new GridLayout ( 0 , 1 , 50 , 5 ) ) ; leftPanel . add ( idLabel ) ; leftPanel . add ( typeLabel ) ; leftPanel . add ( pathLabel ) ; JPanel rightPanel = new JPanel ( ) ; rightPanel . setLayout ( new GridLayout ( 0 , 1 , 50 , 5 ) ) ; rightPanel . add ( idTextField ) ; rightPanel . add ( typeComboBox ) ; rightPanel . add ( pathButton ) ; innerPanel . add ( leftPanel , BorderLayout . CENTER ) ; innerPanel . add ( rightPanel , BorderLayout . EAST ) ; middle . add ( innerPanel , BorderLayout . NORTH ) ; JPanel alwaysPanel = new JPanel ( ) ; alwaysPanel . setLayout ( new BoxLayout ( alwaysPanel , BoxLayout . Y_AXIS ) ) ; alwaysPanel . setBorder ( BorderFactory . createEmptyBorder ( 0 , 0 , 10 , 0 ) ) ; JPanel alwaysSignPanel = new JPanel ( ) ; alwaysSignPanel . setBorder ( BorderFactory . createEmptyBorder ( 0 , 10 , 0 , 10 ) ) ; alwaysSignPanel . setLayout ( new BoxLayout ( alwaysSignPanel , BoxLayout . X_AXIS ) ) ; alwaysSignPanel . add ( alwaysSignCheckBox ) ; alwaysSignPanel . add ( Box . createHorizontalGlue ( ) ) ; layout = new GridBagLayout ( ) ; c = new GridBagConstraints ( ) ; c = new GridBagConstraints ( ) ; c . gridwidth = GridBagConstraints . REMAINDER ; c . gridx = 0 ; c . weightx = 1.0 ; c . anchor = GridBagConstraints . WEST ; layout . setConstraints ( alwaysSignPanel , c ) ; alwaysPanel . add ( alwaysSignPanel ) ; JPanel alwaysEncryptPanel = new JPanel ( ) ; alwaysEncryptPanel . setBorder ( BorderFactory . createEmptyBorder ( 0 , 10 , 0 , 10 ) ) ; alwaysEncryptPanel . setLayout ( new BoxLayout ( alwaysEncryptPanel , BoxLayout . X_AXIS ) ) ; alwaysEncryptPanel . add ( alwaysEncryptCheckBox ) ; alwaysEncryptPanel . add ( Box . createHorizontalGlue ( ) ) ; layout = new GridBagLayout ( ) ; c = new GridBagConstraints ( ) ; c = new GridBagConstraints ( ) ; c . gridwidth = GridBagConstraints . REMAINDER ; c . gridx = 0 ; c . weightx = 1.0 ; c . anchor = GridBagConstraints . WEST ; layout . setConstraints ( alwaysEncryptPanel , c ) ; alwaysPanel . add ( alwaysEncryptPanel ) ; middle . add ( alwaysPanel , BorderLayout . CENTER ) ; mainMiddle . add ( middle , BorderLayout . NORTH ) ; add ( mainMiddle , BorderLayout . CENTER ) ; } protected void initComponents ( ) { } public void enablePGP ( boolean b ) { } public void actionPerformed ( ActionEvent e ) { } public boolean isFinished ( ) { } protected void makeChanges ( boolean newAccount ) { } }

Fix:
middle . setBorder ( BorderFactory . createTitledBorder ( BorderFactory . createEtchedBorder ( ) , MailResourceLoader . getString ( "dialog" , "account" , "pgp_options" ) ) ) ;