Program: 20136
Project: 20136
Buggy source:
public mainGUI(){
  super("String_Node_Str");
  setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  setIconImage(paginaEPUBChecker.logoImg32);
  System.setProperty("String_Node_Str","String_Node_Str");
  System.setProperty("String_Node_Str","String_Node_Str");
  System.setProperty("String_Node_Str","String_Node_Str");
  System.setProperty("String_Node_Str","String_Node_Str");
  if (paginaEPUBChecker.MainGuiDimension == null) {
    setSize(775,650);
  }
 else {
    setSize(paginaEPUBChecker.MainGuiDimension);
  }
  setMinimumSize(new Dimension(650,500));
  if (paginaEPUBChecker.MainGuiPosition == null) {
    setLocation(50,50);
  }
 else {
    setLocation(paginaEPUBChecker.MainGuiPosition);
  }
  setAlwaysOnTop(false);
  Container parent=getContentPane();
  BorderLayout borderLayout=new BorderLayout();
  parent.setLayout(borderLayout);
  Container main=new JPanel();
  GridBagLayout gridBagLayout=new GridBagLayout();
  gridBagLayout.columnWidths=new int[]{25,50,103,50,25,0};
  gridBagLayout.rowHeights=new int[]{25,45,15,25,14,15,250,25};
  gridBagLayout.columnWeights=new double[]{0.0,0.0,1.0,0.0,0.0,Double.MIN_VALUE};
  gridBagLayout.rowWeights=new double[]{0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0};
  main.setLayout(gridBagLayout);
  parent.add(main,BorderLayout.CENTER);
  btn_chooseEpubFile=new JButton(__("String_Node_Str"));
  btn_chooseEpubFile.setFont(btn_chooseEpubFile.getFont().deriveFont(12f));
  btn_chooseEpubFile.addActionListener(this);
  GridBagConstraints gbc_btn_chooseEpubFile=new GridBagConstraints();
  gbc_btn_chooseEpubFile.anchor=GridBagConstraints.WEST;
  gbc_btn_chooseEpubFile.insets=new Insets(0,0,5,5);
  gbc_btn_chooseEpubFile.gridx=1;
  gbc_btn_chooseEpubFile.gridy=1;
  main.add(btn_chooseEpubFile,gbc_btn_chooseEpubFile);
  input_filePath=new JTextField();
  input_filePath.addActionListener(this);
  input_filePath.setFont(input_filePath.getFont().deriveFont(12f));
  GridBagConstraints gbc_input_filePath=new GridBagConstraints();
  gbc_input_filePath.ipady=5;
  gbc_input_filePath.ipadx=5;
  gbc_input_filePath.fill=GridBagConstraints.HORIZONTAL;
  gbc_input_filePath.insets=new Insets(0,0,5,5);
  gbc_input_filePath.gridwidth=2;
  gbc_input_filePath.gridx=2;
  gbc_input_filePath.gridy=1;
  main.add(input_filePath,gbc_input_filePath);
  KeyListener keyListener=new KeyListener(){
    public void keyPressed(    KeyEvent keyEvent){
    }
    public void keyTyped(    KeyEvent e){
    }
    public void keyReleased(    KeyEvent keyEvent){
      if (input_filePath.getText().length() > 0) {
        if (btn_validateEpub.isEnabled() == false) {
          btn_validateEpub.setEnabled(true);
        }
      }
 else {
        if (btn_validateEpub.isEnabled() == true) {
          btn_validateEpub.setEnabled(false);
        }
      }
    }
  }
;
  input_filePath.addKeyListener(keyListener);
  btn_validateEpub=new JButton(__("String_Node_Str"));
  btn_validateEpub.setEnabled(false);
  btn_validateEpub.addActionListener(this);
  btn_validateEpub.setFont(btn_validateEpub.getFont().deriveFont(btn_validateEpub.getFont().getStyle() | Font.BOLD,btn_validateEpub.getFont().getSize() + 3f));
  GridBagConstraints gbc_btn_validateEpub=new GridBagConstraints();
  gbc_btn_validateEpub.ipady=15;
  gbc_btn_validateEpub.ipadx=10;
  gbc_btn_validateEpub.gridwidth=3;
  gbc_btn_validateEpub.insets=new Insets(0,0,5,5);
  gbc_btn_validateEpub.gridx=1;
  gbc_btn_validateEpub.gridy=3;
  main.add(btn_validateEpub,gbc_btn_validateEpub);
  JLabel lbl_epubcheckVersion=new JLabel("String_Node_Str" + __(String.format("String_Node_Str",EpubCheck.version())) + "String_Node_Str");
  lbl_epubcheckVersion.setForeground(Color.DARK_GRAY);
  lbl_epubcheckVersion.setFont(lbl_epubcheckVersion.getFont().deriveFont(10f));
  lbl_epubcheckVersion.setHorizontalAlignment(SwingConstants.CENTER);
  GridBagConstraints gbc_lbl_epubcheckVersion=new GridBagConstraints();
  gbc_lbl_epubcheckVersion.gridwidth=3;
  gbc_lbl_epubcheckVersion.fill=GridBagConstraints.BOTH;
  gbc_lbl_epubcheckVersion.insets=new Insets(0,0,5,5);
  gbc_lbl_epubcheckVersion.gridx=1;
  gbc_lbl_epubcheckVersion.gridy=4;
  main.add(lbl_epubcheckVersion,gbc_lbl_epubcheckVersion);
  txtarea_results=new JTextArea();
  txtarea_results.setFont(UIManager.getFont("String_Node_Str"));
  txtarea_results.setDropMode(DropMode.INSERT);
  txtarea_results.setEditable(false);
  txtarea_results.setWrapStyleWord(true);
  txtarea_results.setLineWrap(true);
  txtarea_results.setBackground(new Color(255,255,240));
  txtarea_results.setMargin(new Insets(10,10,10,15));
  try {
    txtarea_results.setText(__("String_Node_Str"));
  }
 catch (  Exception e) {
  }
  GridBagConstraints gbc_txtarea_results=new GridBagConstraints();
  gbc_txtarea_results.insets=new Insets(0,0,5,5);
  gbc_txtarea_results.fill=GridBagConstraints.BOTH;
  gbc_txtarea_results.gridwidth=3;
  gbc_txtarea_results.gridx=1;
  gbc_txtarea_results.gridy=6;
  tableModel=new DefaultTableModel();
  tableModel.addColumn("String_Node_Str");
  tableModel.addColumn("String_Node_Str");
  tableModel.addColumn("String_Node_Str");
  tableModel.addColumn("String_Node_Str");
  table_results=new JTable(tableModel){
    private static final long serialVersionUID=-4430174981226468686L;
    @Override public boolean isCellEditable(    int arg0,    int arg1){
      return false;
    }
  }
;
  table_results.setAutoCreateRowSorter(true);
  table_results.getTableHeader().setReorderingAllowed(false);
  table_results.setFillsViewportHeight(true);
  table_results.setOpaque(true);
  table_results.setRowHeight(25);
  table_results.getColumnModel().getColumn(0).setResizable(false);
  table_results.getColumnModel().getColumn(1).setResizable(false);
  table_results.getColumnModel().getColumn(0).setMaxWidth(100);
  table_results.getColumnModel().getColumn(0).setMinWidth(100);
  table_results.getColumnModel().getColumn(1).setMaxWidth(100);
  table_results.getColumnModel().getColumn(1).setMinWidth(100);
  table_results.getColumnModel().getColumn(2).setMinWidth(130);
  table_results.getColumnModel().getColumn(2).setPreferredWidth(130);
  table_results.getColumnModel().getColumn(3).setMinWidth(270);
  table_results.getColumnModel().getColumn(3).setPreferredWidth(270);
  table_results.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);
  table_results.getColumnModel().getColumn(0).setCellRenderer(new IconTableCellRenderer());
  table_results.getColumnModel().getColumn(1).setCellRenderer(new BoardTableCellRenderer());
  table_results.getColumnModel().getColumn(2).setCellRenderer(new MultiLineCellRenderer());
  table_results.getColumnModel().getColumn(3).setCellRenderer(new MultiLineCellRenderer());
  scroll_results=new JScrollPane(table_results);
  setBorderStateNormal();
  GridBagConstraints gbc_scroll_results=new GridBagConstraints();
  gbc_scroll_results.insets=new Insets(0,0,5,5);
  gbc_scroll_results.fill=GridBagConstraints.BOTH;
  gbc_scroll_results.gridwidth=3;
  gbc_scroll_results.gridx=1;
  gbc_scroll_results.gridy=6;
  main.add(scroll_results,gbc_scroll_results);
  DragDropListener txtareaDNDListener=new DragDropListener();
  new DropTarget(txtarea_results,txtareaDNDListener);
  if (System.getProperty("String_Node_Str").indexOf("String_Node_Str") > -1) {
    statusBar=new StatusBar(null,"String_Node_Str",true);
  }
 else {
    statusBar=new StatusBar(null,"String_Node_Str",false);
  }
  parent.add(statusBar,BorderLayout.PAGE_END);
  lbl_test=new JLabel();
  GridBagConstraints gbc_lbl_test=new GridBagConstraints();
  gbc_lbl_test.insets=new Insets(0,0,5,5);
  gbc_lbl_test.gridx=3;
  gbc_lbl_test.gridy=2;
  main.add(lbl_test,gbc_lbl_test);
  JMenuBar menuBar=new JMenuBar();
  setJMenuBar(menuBar);
  mn_File=new JMenu(__("String_Node_Str"));
  menuBar.add(mn_File);
  mnItem_Open=new JMenuItem(__("String_Node_Str"));
  if (paginaEPUBChecker.os_name.equals("String_Node_Str")) {
    mnItem_Open.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,InputEvent.META_MASK));
  }
 else {
    mnItem_Open.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,InputEvent.CTRL_MASK));
  }
  mnItem_Open.addActionListener(this);
  mn_File.add(mnItem_Open);
  if (!paginaEPUBChecker.os_name.equals("String_Node_Str")) {
    mn_File.addSeparator();
    mnItem_Exit=new JMenuItem(__("String_Node_Str"));
    if (paginaEPUBChecker.os_name.equals("String_Node_Str")) {
      mnItem_Exit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4,InputEvent.ALT_MASK));
    }
 else {
      mnItem_Exit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,InputEvent.CTRL_MASK));
    }
    mnItem_Exit.addActionListener(this);
    mn_File.add(mnItem_Exit);
  }
  mn_Log=new JMenu(__("String_Node_Str"));
  menuBar.add(mn_Log);
  mnItem_Save=new JMenuItem(__("String_Node_Str"));
  if (paginaEPUBChecker.os_name.equals("String_Node_Str")) {
    mnItem_Save.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,InputEvent.META_MASK));
  }
 else {
    mnItem_Save.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,InputEvent.CTRL_MASK));
  }
  mnItem_Save.setEnabled(false);
  mnItem_Save.addActionListener(this);
  mn_Log.add(mnItem_Save);
  mn_Log.addSeparator();
  opt_AutoSave=new JRadioButtonMenuItem(__("String_Node_Str"));
  opt_AutoSave.addActionListener(this);
  mn_Log.add(opt_AutoSave);
  mn_Language=new JMenu(__("String_Node_Str"));
  menuBar.add(mn_Language);
  opt_Lang=new JRadioButtonMenuItem[paginaEPUBChecker.availableLanguages.length];
  availableLanguagesOriginal=new String[paginaEPUBChecker.availableLanguages.length];
  for (int i=0; i < paginaEPUBChecker.availableLanguages.length; i++) {
    availableLanguagesOriginal[i]=__(paginaEPUBChecker.availableLanguages[i]);
    opt_Lang[i]=new JRadioButtonMenuItem(__(paginaEPUBChecker.availableLanguages[i]));
    if (paginaEPUBChecker.programLanguage.equals(paginaEPUBChecker.availableLanguages[i].toLowerCase())) {
      opt_Lang[i].setSelected(true);
    }
    mn_Language.add(opt_Lang[i]);
    opt_Lang[i].addActionListener(new ActionListener(){
      public void actionPerformed(      ActionEvent e){
        int index=getIndex(availableLanguagesOriginal,e.paramString().split("String_Node_Str")[1].replaceAll("String_Node_Str","String_Node_Str"));
        restartWithNewLanguage(paginaEPUBChecker.availableLanguages[index].toLowerCase());
      }
    }
);
  }
  mn_Language.addSeparator();
  opt_Translate=new JRadioButtonMenuItem(__("String_Node_Str"));
  opt_Translate.addActionListener(this);
  mn_Language.add(opt_Translate);
  mn_Help=new JMenu(__("String_Node_Str"));
  menuBar.add(mn_Help);
  mnItem_About=new JMenuItem(__("String_Node_Str"));
  mnItem_About.addActionListener(this);
  mn_Help.add(mnItem_About);
  mnItem_Translations=new JMenuItem(__("String_Node_Str"));
  mnItem_Translations.addActionListener(this);
  mn_Help.add(mnItem_Translations);
  mnItem_licenceInformation=new JMenuItem(__("String_Node_Str"));
  mnItem_licenceInformation.addActionListener(this);
  mn_Help.add(mnItem_licenceInformation);
  mn_Help.addSeparator();
  mnItem_WebsiteEpubcheck=new JMenuItem(__("String_Node_Str"));
  mnItem_WebsiteEpubcheck.addActionListener(this);
  mn_Help.add(mnItem_WebsiteEpubcheck);
  mnItem_WebsitePagina=new JMenuItem(__("String_Node_Str"));
  mnItem_WebsitePagina.addActionListener(this);
  mn_Help.add(mnItem_WebsitePagina);
  mn_Help.addSeparator();
  mnItem_Updates=new JMenuItem(__("String_Node_Str"));
  mnItem_Updates.addActionListener(this);
  mn_Help.add(mnItem_Updates);
  setVisible(true);
  paginaEPUBChecker.guiReady=true;
  validateImmediatelyIfFileIsSet();
  SwingWorker<Void,Void> setOptionsWorker=new SwingWorker<Void,Void>(){
    @Override protected Void doInBackground() throws Exception {
      if (new File(paginaEPUBChecker.path_AutoSaveFile).exists()) {
        try {
          paginaEPUBChecker.AutoSave=Boolean.valueOf(updateCheck.readFileAsString(paginaEPUBChecker.path_AutoSaveFile));
        }
 catch (        IOException e) {
          e.printStackTrace();
        }
        if (paginaEPUBChecker.AutoSave) {
          opt_AutoSave.setSelected(true);
        }
      }
      if (new File(paginaEPUBChecker.path_TranslateFile).exists()) {
        try {
          paginaEPUBChecker.epubcheck_translate=Boolean.valueOf(updateCheck.readFileAsString(paginaEPUBChecker.path_TranslateFile));
        }
 catch (        IOException e) {
          e.printStackTrace();
        }
      }
 else       if (paginaEPUBChecker.programLanguage.equals("String_Node_Str")) {
        paginaEPUBChecker.epubcheck_translate=true;
      }
 else {
        paginaEPUBChecker.epubcheck_translate=false;
      }
      opt_Translate.setSelected(paginaEPUBChecker.epubcheck_translate);
      return null;
    }
  }
;
  setOptionsWorker.execute();
}

Fixed version (ground truth):
public mainGUI(){
  super("String_Node_Str");
  setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  setIconImage(paginaEPUBChecker.logoImg32);
  System.setProperty("String_Node_Str","String_Node_Str");
  System.setProperty("String_Node_Str","String_Node_Str");
  System.setProperty("String_Node_Str","String_Node_Str");
  System.setProperty("String_Node_Str","String_Node_Str");
  if (paginaEPUBChecker.MainGuiDimension == null) {
    setSize(775,650);
  }
 else {
    setSize(paginaEPUBChecker.MainGuiDimension);
  }
  setMinimumSize(new Dimension(650,500));
  if (paginaEPUBChecker.MainGuiPosition == null) {
    setLocation(50,50);
  }
 else {
    setLocation(paginaEPUBChecker.MainGuiPosition);
  }
  setAlwaysOnTop(false);
  Container parent=getContentPane();
  BorderLayout borderLayout=new BorderLayout();
  parent.setLayout(borderLayout);
  Container main=new JPanel();
  GridBagLayout gridBagLayout=new GridBagLayout();
  gridBagLayout.columnWidths=new int[]{25,50,103,50,25,0};
  gridBagLayout.rowHeights=new int[]{25,45,15,25,14,15,250,25};
  gridBagLayout.columnWeights=new double[]{0.0,0.0,1.0,0.0,0.0,Double.MIN_VALUE};
  gridBagLayout.rowWeights=new double[]{0.0,0.0,0.0,0.0,0.0,0.0,1.0,0.0};
  main.setLayout(gridBagLayout);
  parent.add(main,BorderLayout.CENTER);
  btn_chooseEpubFile=new JButton(__("String_Node_Str"));
  btn_chooseEpubFile.setFont(btn_chooseEpubFile.getFont().deriveFont(12f));
  btn_chooseEpubFile.addActionListener(this);
  GridBagConstraints gbc_btn_chooseEpubFile=new GridBagConstraints();
  gbc_btn_chooseEpubFile.anchor=GridBagConstraints.WEST;
  gbc_btn_chooseEpubFile.insets=new Insets(0,0,5,5);
  gbc_btn_chooseEpubFile.gridx=1;
  gbc_btn_chooseEpubFile.gridy=1;
  main.add(btn_chooseEpubFile,gbc_btn_chooseEpubFile);
  input_filePath=new JTextField();
  input_filePath.addActionListener(this);
  input_filePath.setFont(input_filePath.getFont().deriveFont(12f));
  GridBagConstraints gbc_input_filePath=new GridBagConstraints();
  gbc_input_filePath.ipady=5;
  gbc_input_filePath.ipadx=5;
  gbc_input_filePath.fill=GridBagConstraints.HORIZONTAL;
  gbc_input_filePath.insets=new Insets(0,0,5,5);
  gbc_input_filePath.gridwidth=2;
  gbc_input_filePath.gridx=2;
  gbc_input_filePath.gridy=1;
  main.add(input_filePath,gbc_input_filePath);
  KeyListener keyListener=new KeyListener(){
    public void keyPressed(    KeyEvent keyEvent){
    }
    public void keyTyped(    KeyEvent e){
    }
    public void keyReleased(    KeyEvent keyEvent){
      if (input_filePath.getText().length() > 0) {
        if (btn_validateEpub.isEnabled() == false) {
          btn_validateEpub.setEnabled(true);
        }
      }
 else {
        if (btn_validateEpub.isEnabled() == true) {
          btn_validateEpub.setEnabled(false);
        }
      }
    }
  }
;
  input_filePath.addKeyListener(keyListener);
  btn_validateEpub=new JButton(__("String_Node_Str"));
  btn_validateEpub.setEnabled(false);
  btn_validateEpub.addActionListener(this);
  btn_validateEpub.setFont(btn_validateEpub.getFont().deriveFont(btn_validateEpub.getFont().getStyle() | Font.BOLD,btn_validateEpub.getFont().getSize() + 3f));
  GridBagConstraints gbc_btn_validateEpub=new GridBagConstraints();
  gbc_btn_validateEpub.ipady=15;
  gbc_btn_validateEpub.ipadx=10;
  gbc_btn_validateEpub.gridwidth=3;
  gbc_btn_validateEpub.insets=new Insets(0,0,5,5);
  gbc_btn_validateEpub.gridx=1;
  gbc_btn_validateEpub.gridy=3;
  main.add(btn_validateEpub,gbc_btn_validateEpub);
  JLabel lbl_epubcheckVersion=new JLabel("String_Node_Str" + __(String.format("String_Node_Str",EpubCheck.version())) + "String_Node_Str");
  lbl_epubcheckVersion.setForeground(Color.DARK_GRAY);
  lbl_epubcheckVersion.setFont(lbl_epubcheckVersion.getFont().deriveFont(10f));
  lbl_epubcheckVersion.setHorizontalAlignment(SwingConstants.CENTER);
  GridBagConstraints gbc_lbl_epubcheckVersion=new GridBagConstraints();
  gbc_lbl_epubcheckVersion.gridwidth=3;
  gbc_lbl_epubcheckVersion.fill=GridBagConstraints.BOTH;
  gbc_lbl_epubcheckVersion.insets=new Insets(0,0,5,5);
  gbc_lbl_epubcheckVersion.gridx=1;
  gbc_lbl_epubcheckVersion.gridy=4;
  main.add(lbl_epubcheckVersion,gbc_lbl_epubcheckVersion);
  txtarea_results=new JTextArea();
  txtarea_results.setFont(UIManager.getFont("String_Node_Str"));
  txtarea_results.setDropMode(DropMode.INSERT);
  txtarea_results.setEditable(false);
  txtarea_results.setWrapStyleWord(true);
  txtarea_results.setLineWrap(true);
  txtarea_results.setBackground(new Color(255,255,240));
  txtarea_results.setMargin(new Insets(10,10,10,15));
  try {
    txtarea_results.setText(__("String_Node_Str"));
  }
 catch (  Exception e) {
  }
  GridBagConstraints gbc_txtarea_results=new GridBagConstraints();
  gbc_txtarea_results.insets=new Insets(0,0,5,5);
  gbc_txtarea_results.fill=GridBagConstraints.BOTH;
  gbc_txtarea_results.gridwidth=3;
  gbc_txtarea_results.gridx=1;
  gbc_txtarea_results.gridy=6;
  tableModel=new DefaultTableModel();
  tableModel.addColumn("String_Node_Str");
  tableModel.addColumn("String_Node_Str");
  tableModel.addColumn("String_Node_Str");
  tableModel.addColumn("String_Node_Str");
  table_results=new JTable(tableModel){
    private static final long serialVersionUID=-4430174981226468686L;
    @Override public boolean isCellEditable(    int arg0,    int arg1){
      return false;
    }
  }
;
  table_results.setAutoCreateRowSorter(true);
  table_results.getTableHeader().setReorderingAllowed(false);
  table_results.setFillsViewportHeight(true);
  table_results.setOpaque(true);
  table_results.setRowHeight(25);
  table_results.setShowGrid(false);
  table_results.setIntercellSpacing(new Dimension(0,0));
  table_results.setRowMargin(0);
  table_results.getColumnModel().getColumn(0).setResizable(false);
  table_results.getColumnModel().getColumn(1).setResizable(false);
  table_results.getColumnModel().getColumn(0).setMaxWidth(100);
  table_results.getColumnModel().getColumn(0).setMinWidth(100);
  table_results.getColumnModel().getColumn(1).setMaxWidth(100);
  table_results.getColumnModel().getColumn(1).setMinWidth(100);
  table_results.getColumnModel().getColumn(2).setMinWidth(130);
  table_results.getColumnModel().getColumn(2).setPreferredWidth(130);
  table_results.getColumnModel().getColumn(3).setMinWidth(270);
  table_results.getColumnModel().getColumn(3).setPreferredWidth(270);
  table_results.setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);
  table_results.getColumnModel().getColumn(0).setCellRenderer(new IconTableCellRenderer());
  table_results.getColumnModel().getColumn(1).setCellRenderer(new BoardTableCellRenderer());
  table_results.getColumnModel().getColumn(2).setCellRenderer(new MultiLineCellRenderer());
  table_results.getColumnModel().getColumn(3).setCellRenderer(new MultiLineCellRenderer());
  scroll_results=new JScrollPane(table_results);
  setBorderStateNormal();
  GridBagConstraints gbc_scroll_results=new GridBagConstraints();
  gbc_scroll_results.insets=new Insets(0,0,5,5);
  gbc_scroll_results.fill=GridBagConstraints.BOTH;
  gbc_scroll_results.gridwidth=3;
  gbc_scroll_results.gridx=1;
  gbc_scroll_results.gridy=6;
  main.add(scroll_results,gbc_scroll_results);
  DragDropListener txtareaDNDListener=new DragDropListener();
  new DropTarget(txtarea_results,txtareaDNDListener);
  if (System.getProperty("String_Node_Str").indexOf("String_Node_Str") > -1) {
    statusBar=new StatusBar(null,"String_Node_Str",true);
  }
 else {
    statusBar=new StatusBar(null,"String_Node_Str",false);
  }
  parent.add(statusBar,BorderLayout.PAGE_END);
  lbl_test=new JLabel();
  GridBagConstraints gbc_lbl_test=new GridBagConstraints();
  gbc_lbl_test.insets=new Insets(0,0,5,5);
  gbc_lbl_test.gridx=3;
  gbc_lbl_test.gridy=2;
  main.add(lbl_test,gbc_lbl_test);
  JMenuBar menuBar=new JMenuBar();
  setJMenuBar(menuBar);
  mn_File=new JMenu(__("String_Node_Str"));
  menuBar.add(mn_File);
  mnItem_Open=new JMenuItem(__("String_Node_Str"));
  if (paginaEPUBChecker.os_name.equals("String_Node_Str")) {
    mnItem_Open.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,InputEvent.META_MASK));
  }
 else {
    mnItem_Open.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,InputEvent.CTRL_MASK));
  }
  mnItem_Open.addActionListener(this);
  mn_File.add(mnItem_Open);
  if (!paginaEPUBChecker.os_name.equals("String_Node_Str")) {
    mn_File.addSeparator();
    mnItem_Exit=new JMenuItem(__("String_Node_Str"));
    if (paginaEPUBChecker.os_name.equals("String_Node_Str")) {
      mnItem_Exit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F4,InputEvent.ALT_MASK));
    }
 else {
      mnItem_Exit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,InputEvent.CTRL_MASK));
    }
    mnItem_Exit.addActionListener(this);
    mn_File.add(mnItem_Exit);
  }
  mn_Log=new JMenu(__("String_Node_Str"));
  menuBar.add(mn_Log);
  mnItem_Save=new JMenuItem(__("String_Node_Str"));
  if (paginaEPUBChecker.os_name.equals("String_Node_Str")) {
    mnItem_Save.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,InputEvent.META_MASK));
  }
 else {
    mnItem_Save.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,InputEvent.CTRL_MASK));
  }
  mnItem_Save.setEnabled(false);
  mnItem_Save.addActionListener(this);
  mn_Log.add(mnItem_Save);
  mn_Log.addSeparator();
  opt_AutoSave=new JRadioButtonMenuItem(__("String_Node_Str"));
  opt_AutoSave.addActionListener(this);
  mn_Log.add(opt_AutoSave);
  mn_Language=new JMenu(__("String_Node_Str"));
  menuBar.add(mn_Language);
  opt_Lang=new JRadioButtonMenuItem[paginaEPUBChecker.availableLanguages.length];
  availableLanguagesOriginal=new String[paginaEPUBChecker.availableLanguages.length];
  for (int i=0; i < paginaEPUBChecker.availableLanguages.length; i++) {
    availableLanguagesOriginal[i]=__(paginaEPUBChecker.availableLanguages[i]);
    opt_Lang[i]=new JRadioButtonMenuItem(__(paginaEPUBChecker.availableLanguages[i]));
    if (paginaEPUBChecker.programLanguage.equals(paginaEPUBChecker.availableLanguages[i].toLowerCase())) {
      opt_Lang[i].setSelected(true);
    }
    mn_Language.add(opt_Lang[i]);
    opt_Lang[i].addActionListener(new ActionListener(){
      public void actionPerformed(      ActionEvent e){
        int index=getIndex(availableLanguagesOriginal,e.paramString().split("String_Node_Str")[1].replaceAll("String_Node_Str","String_Node_Str"));
        restartWithNewLanguage(paginaEPUBChecker.availableLanguages[index].toLowerCase());
      }
    }
);
  }
  mn_Language.addSeparator();
  opt_Translate=new JRadioButtonMenuItem(__("String_Node_Str"));
  opt_Translate.addActionListener(this);
  mn_Language.add(opt_Translate);
  mn_Help=new JMenu(__("String_Node_Str"));
  menuBar.add(mn_Help);
  mnItem_About=new JMenuItem(__("String_Node_Str"));
  mnItem_About.addActionListener(this);
  mn_Help.add(mnItem_About);
  mnItem_Translations=new JMenuItem(__("String_Node_Str"));
  mnItem_Translations.addActionListener(this);
  mn_Help.add(mnItem_Translations);
  mnItem_licenceInformation=new JMenuItem(__("String_Node_Str"));
  mnItem_licenceInformation.addActionListener(this);
  mn_Help.add(mnItem_licenceInformation);
  mn_Help.addSeparator();
  mnItem_WebsiteEpubcheck=new JMenuItem(__("String_Node_Str"));
  mnItem_WebsiteEpubcheck.addActionListener(this);
  mn_Help.add(mnItem_WebsiteEpubcheck);
  mnItem_WebsitePagina=new JMenuItem(__("String_Node_Str"));
  mnItem_WebsitePagina.addActionListener(this);
  mn_Help.add(mnItem_WebsitePagina);
  mn_Help.addSeparator();
  mnItem_Updates=new JMenuItem(__("String_Node_Str"));
  mnItem_Updates.addActionListener(this);
  mn_Help.add(mnItem_Updates);
  setVisible(true);
  paginaEPUBChecker.guiReady=true;
  validateImmediatelyIfFileIsSet();
  SwingWorker<Void,Void> setOptionsWorker=new SwingWorker<Void,Void>(){
    @Override protected Void doInBackground() throws Exception {
      if (new File(paginaEPUBChecker.path_AutoSaveFile).exists()) {
        try {
          paginaEPUBChecker.AutoSave=Boolean.valueOf(updateCheck.readFileAsString(paginaEPUBChecker.path_AutoSaveFile));
        }
 catch (        IOException e) {
          e.printStackTrace();
        }
        if (paginaEPUBChecker.AutoSave) {
          opt_AutoSave.setSelected(true);
        }
      }
      if (new File(paginaEPUBChecker.path_TranslateFile).exists()) {
        try {
          paginaEPUBChecker.epubcheck_translate=Boolean.valueOf(updateCheck.readFileAsString(paginaEPUBChecker.path_TranslateFile));
        }
 catch (        IOException e) {
          e.printStackTrace();
        }
      }
 else       if (paginaEPUBChecker.programLanguage.equals("String_Node_Str")) {
        paginaEPUBChecker.epubcheck_translate=true;
      }
 else {
        paginaEPUBChecker.epubcheck_translate=false;
      }
      opt_Translate.setSelected(paginaEPUBChecker.epubcheck_translate);
      return null;
    }
  }
;
  setOptionsWorker.execute();
}