Buggy code:
public class ImageToolFrame extends JFrame { public JTabbedPane fileTab = new JTabbedPane ( ) ; private final StatusPanel status_panel ; private String currentDir1 ; private JPopupMenu popup ; private JMenuItem ploadItem ; private JMenuItem pcloseItem ; private JMenuItem pcloseAllItem ; private JMenuItem pPropertiesItem ; private List fileNameList = Collections . synchronizedList ( new ArrayList ( ) ) ; public static int index ; public ImageToolFrame ( ) { } public String getCurrentDir ( ) { } public void setCurrentDir ( String currentDir ) { } private boolean anyFileOpened ( ) { } private void popupTab ( ) { } @ SuppressWarnings ( "unchecked" ) private void initComponents ( ) { } private void openItemActionPerformed ( ActionEvent evt ) { } public void setPath ( String path ) { } private void forumItemActionPerformed ( ActionEvent evt ) { } private void onlineHelpItemActionPerformed ( ActionEvent evt ) { } private void howToItemActionPerformed ( ActionEvent evt ) { } private void faqItemActionPerformed ( ActionEvent evt ) { } private void suggestionsItemActionPerformed ( ActionEvent evt ) { } private void reportBugItem1ActionPerformed ( ActionEvent evt ) { } private void feedBackItem1ActionPerformed ( ActionEvent evt ) { } private void AboutItemActionPerformed ( ActionEvent evt ) { } private void exitItemActionPerformed ( ActionEvent evt ) { } private void openButtonActionPerformed ( ActionEvent evt ) { } private void propertiesItemActionPerformed ( ActionEvent evt ) { } private void loadImageItemActionPerformed ( ActionEvent evt ) { } private void propertiesButtonActionPerformed ( ActionEvent evt ) { } private void closeItemActionPerformed ( ActionEvent evt ) { } private void closeAllItemActionPerformed ( ActionEvent evt ) { } private void jMenuItem1ActionPerformed ( ActionEvent evt ) { } private void exportMenuItemActionPerformed ( ActionEvent evt ) { } private void jMenuItem2ActionPerformed ( ActionEvent evt ) { } public static void main ( String [ ] args ) throws ClassNotFoundException { } public Image icon = Toolkit . getDefaultToolkit ( ) . getImage ( getClass ( ) . getResource ( "//org//domainmath//gui//resources//DomainMath.png" ) ) ; private JMenuItem AboutItem ; private JMenuItem closeAllItem ; private JMenuItem closeItem ; private JMenuItem exitItem ; private JMenuItem exportMenuItem ; private JMenuItem faqItem ; private JMenuItem feedBackItem1 ; private JMenuItem forumItem ; private JMenu helpMenu ; private JMenuItem howToItem ; private JMenu imageMenu ; private JMenu jMenu1 ; private JMenuBar jMenuBar1 ; private JMenuItem jMenuItem1 ; private JMenuItem jMenuItem2 ; private JPopupMenu . Separator jSeparator1 ; private JPopupMenu . Separator jSeparator12 ; private JPopupMenu . Separator jSeparator16 ; private JToolBar jToolBar1 ; private JMenuItem loadImageItem ; private JMenuItem onlineHelpItem ; private JButton openButton ; private JMenuItem openItem ; private JButton propertiesButton ; private JMenuItem propertiesItem ; private JMenuItem reportBugItem1 ; private JMenuItem suggestionsItem ; public void addFileNameToList ( String name ) { } public void removeFileNameFromList ( int index ) { } public void open ( ) { } public void open ( File file ) { } public void generateProperties ( ) { } public void displayImageProperties ( ) { if ( anyFileOpened ( ) ) { File f = new File ( fileTab . getToolTipTextAt ( fileTab . getSelectedIndex ( ) ) ) ; String pic_name = f . getName ( ) ; String variable = ( pic_name . substring ( 0 , f . getName ( ) . indexOf ( "." ) ) ) + "_properties" ; octavePanel . eval ( ( ( ( variable + "=imfinfo('" ) + ( f . getAbsolutePath ( ) ) ) + "');" ) ) ; <START_BUG> octavePanel . evaluate ( ( ( ( ( ( "DomainMath_OctaveDataView('" + ( MainFrame . log_root ) ) + variable ) + ".dat'," ) + variable ) + ");" ) ) ; <END_BUG> DataViewFrame n = new DataViewFrame ( ( variable + "<1x1<seq2seq4repair_space>struct>" ) , ( ( ( MainFrame . log_root ) + variable ) + ".dat" ) ) ; } } class PopupListener extends MouseAdapter { JPopupMenu popup ; PopupListener ( JPopupMenu popupMenu ) { } @ Override public void mousePressed ( MouseEvent e ) { } @ Override public void mouseReleased ( MouseEvent e ) { } private void maybeShowPopup ( MouseEvent e ) { } } }

Fix:
octavePanel . evaluate ( ( ( ( ( ( "DomainMath_OctaveDataView('" + ( MainFrame . log_root ) ) + variable ) + ".dat'," ) + variable ) + ",0);" ) ) ;