public UIOptions(){
  initComponents();
  hideAllUnsedComponents();
  String path=System.getProperty("user.home") + "/EsPReSSO";
  String decoded_path=null;
  try {
    if (path != null) {
      decoded_path=URLDecoder.decode(path,"UTF-8");
      if (decoded_path != null) {
        File file=new File(decoded_path);
        if (!file.exists()) {
          file.mkdir();
        }
        path=decoded_path + "/config.json";
        file=new File(path);
        if (!file.exists()) {
          file.createNewFile();
          configText1.setText(path);
          saveConfig(path);
        }
 else {
          configText1.setText(path);
          loadConfig(path);
        }
      }
    }
  }
 catch (  UnsupportedEncodingException ex) {
    JOptionPane.showMessageDialog(this,ex.toString(),"ERROR 2",JOptionPane.ERROR_MESSAGE);
  }
catch (  IOException ex) {
    JOptionPane.showMessageDialog(this,ex.toString(),"ERROR 2",JOptionPane.ERROR_MESSAGE);
  }
}

public UIOptions ( ) { initComponents ( ) ; hideAllUnsedComponents ( ) ; String path = System . getProperty ( "user.home" ) + "/EsPReSSO" ; String decoded_path = null ; try { if ( path != null ) { decoded_path = URLDecoder . decode ( path , "UTF-8" ) ; if ( decoded_path != null ) { File file = new File ( decoded_path ) ; if ( ! file . exists ( ) ) { file . mkdir ( ) ; } path = decoded_path + "/config.json" ; file = new File ( path ) ; if ( ! file . exists ( ) ) { file . createNewFile ( ) ; configText1 . setText ( path ) ; saveConfig ( path ) ; } else { configText1 . setText ( path ) ; loadConfig ( path ) ; } } } } catch ( UnsupportedEncodingException ex ) { JOptionPane . showMessageDialog ( this , ex . toString ( ) , "ERROR 2" , JOptionPane . ERROR_MESSAGE ) ; } catch ( IOException ex ) { JOptionPane . showMessageDialog ( this , ex . toString ( ) , "ERROR 2" , JOptionPane . ERROR_MESSAGE ) ; } }
creates new form uioptions
