mConfigBackgroundStyleBt.setEnabled(style.hasContent());
}
public static JButton createBrowseButton(final Component parent, final JTextField tf) {
JButton bt = new JButton(mLocalizer.msg("change", "Change"));
bt.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
File file = new File(tf.getText());
JFileChooser fileChooser = new JFileChooser(file.getParent());
String[] extArr = { ".jpg", ".jpeg", ".gif", ".png" };
fileChooser.setFileFilter(new util.ui.ExtensionFileFilter(extArr, ".jpg, .gif, png"));