System.out.println( "action command = " + an_event.getActionCommand() );
if (log.isDebugEnabled()) log.debug( "action command = " + an_event.getActionCommand() );
    private void initGUI()     {        mainPnl.setBorder( null );        mainPnl.setLayout( new java.awt.BorderLayout() );        mainPnl.add( splitPane, java.awt.BorderLayout.CENTER );        splitPane.add( tabbedPane, javax.swing.JSplitPane.RIGHT );        splitPane.add( treePane, javax.swing.JSplitPane.LEFT );        tabbedPane.add( entryPnl, "Entry Attributes" );        tabbedPane.add( idxPnl, "Entry Indices" );        entryPnl.setLayout( new java.awt.BorderLayout() );        entryPnl.add( entryPane, java.awt.BorderLayout.CENTER );        idxPnl.setLayout( new java.awt.BorderLayout() );        idxPnl.add( idxPane, java.awt.BorderLayout.CENTER );        getContentPane().setLayout( new java.awt.BorderLayout() );        JPanel content = new JPanel();        content.setPreferredSize( new java.awt.Dimension( 798, 461 ) );        content.setLayout( new java.awt.BorderLayout() );        content.setBorder( javax.swing.BorderFactory.createEtchedBorder() );        content.add( mainPnl, java.awt.BorderLayout.NORTH );        getContentPane().add( content, BorderLayout.CENTER );        // set title        setTitle( "Backend DB Viewer" );        // add status bar        getContentPane().add( statusBar, BorderLayout.SOUTH );        // add menu bar        JMenuBar menuBar = new JMenuBar();        // --------------------------------------------------------------------        // 'Backend' Menu        // --------------------------------------------------------------------                JMenu backendMenu = new JMenu( "Backend" );        backendMenu.setText( "Backend" );        backendMenu.setBackground( new java.awt.Color( 205, 205, 205 ) );        backendMenu.setMnemonic( 'B' );        // create Import menu item        JMenuItem add = new JMenuItem( "Add" );        backendMenu.add( add );        add.setMnemonic( 'A' );        add.setBackground( new java.awt.Color( 205, 205, 205 ) );        add.addActionListener( new ActionListener()        {            public void actionPerformed( ActionEvent e )             {                doAddDialog();            }        } );        // create Import menu item        JMenuItem importItem = new JMenuItem( "Import" );        backendMenu.add( importItem );        importItem.setMnemonic( 'I' );        importItem.setBackground( new java.awt.Color( 205, 205, 205 ) );        importItem.addActionListener( new ActionListener()        {            public void actionPerformed( ActionEvent e )             {                doImport();            }        } );        // create Exit menu item        JMenuItem exit = new JMenuItem( "Exit" );        backendMenu.add( exit );        exit.setMnemonic( 'E' );        exit.setBackground( new java.awt.Color( 205, 205, 205 ) );        exit.addActionListener( new ActionListener()        {            public void actionPerformed( ActionEvent e )             {                exitForm();            }        } );        // create About menu item        JMenu helpMenu = new JMenu( "Help" );        helpMenu.setMnemonic( 'H' );        JMenuItem about = new JMenuItem( "About" );        about.setMnemonic( 'A' );        about.setBackground( new java.awt.Color( 205,205,205 ) );        about.addActionListener( new ActionListener()        {            public void actionPerformed( ActionEvent e )             {                AboutDialog aboutDialog =                     new AboutDialog ( MainFrame.this, true );                MainFrame.this.centerOnScreen( aboutDialog );                aboutDialog.setVisible( true );            }        } );        helpMenu.setBackground( new java.awt.Color( 205,205,205 ) );        helpMenu.add( about );                // create Save menu item        // create Print menu item        menuBar.setBackground( new java.awt.Color( 196,197,203 ) );        menuBar.add( backendMenu );        menuBar.add( searchMenu );        menuBar.add( indices );        menuBar.add( helpMenu );        // sets menu bar        setJMenuBar( menuBar );        setBounds( new java.awt.Rectangle( 0, 0, 802, 515 ) );        setSize( new java.awt.Dimension( 802,515 ) );        setResizable( true );                addWindowListener( new java.awt.event.WindowAdapter()         {            public void windowClosing( java.awt.event.WindowEvent evt )             {                exitForm();            }        } );                treePane.getViewport().add( tree );        tree.setBounds( new java.awt.Rectangle( 6,184,82,80 ) );        tree.setShowsRootHandles( true );        tree.setToolTipText( "DB DIT" );        tree.setScrollsOnExpand( true );        tree.getSelectionModel().addTreeSelectionListener(            new TreeSelectionListener()         {            public void valueChanged( TreeSelectionEvent e )             {                TreePath path = e.getNewLeadSelectionPath();                if ( path == null )                {                    return;                }                Object last = path.getLastPathComponent();                try                 {                    if ( last instanceof EntryNode )                    {                        displayEntry( ( ( EntryNode ) last ).getEntryId(),                        ( ( EntryNode ) last).getLdapEntry() );                    }                }                 catch( Exception ex )                 {                    ex.printStackTrace();                }            }        } );        entryPane.getViewport().add( entryTbl );        entryTbl.setBounds( new java.awt.Rectangle( 321,103,32,32 ) );        idxPane.getViewport().add( idxTbl );        idxTbl.setBounds( new java.awt.Rectangle( 429,134,32,32 ) );        treePane.setSize( new java.awt.Dimension( 285, 435 ) );        treePane.setPreferredSize( new java.awt.Dimension( 285, 403 ) );        searchMenu.setText( "Search" );        searchMenu.setBackground( new java.awt.Color( 205,205,205 ) );        searchMenu.add( run );        searchMenu.add( debug );        searchMenu.add( annotate );        ActionListener searchHandler = new ActionListener()        {            public void actionPerformed( ActionEvent an_event )             {                System.out.println( "action command = "                     + an_event.getActionCommand() );                try                {                    doFilterDialog( an_event.getActionCommand() );                }                catch( NamingException e )                {                    e.printStackTrace();                }            }        };        annotate.setText( FilterDialog.ANNOTATE_MODE );        annotate.setActionCommand( FilterDialog.ANNOTATE_MODE );        annotate.setBackground( new java.awt.Color( 205,205,205 ) );        annotate.addActionListener( searchHandler );        run.setText( FilterDialog.RUN_MODE );        run.setActionCommand( FilterDialog.RUN_MODE );        run.setBackground( new java.awt.Color( 205,205,205 ) );        run.addActionListener( searchHandler );        debug.setText( FilterDialog.DEBUG_MODE );        debug.setActionCommand( FilterDialog.DEBUG_MODE );        debug.setBackground( new java.awt.Color( 205,205,205 ) );        debug.addActionListener( searchHandler );        indices.setText( "Indices" );        indices.setBackground( new java.awt.Color( 205, 205, 205 ) );    }