private JXTable getUrlsTable ( ) { if ( urlsTable == null ) { // Create the table with a default, empty TableModel and the proper settings urlsTable = new ZapTable ( EMPTY_URLS_TABLE_MODEL ) ; urlsTable . setColumnSelectionAllowed ( false ) ; urlsTable . setCellSelectionEnabled ( false ) ; urlsTable . setRowSelectionAllowed ( true ) ; urlsTable . setAutoCreateRowSorter ( true ) ; urlsTable . setAutoCreateColumnsFromModel ( false ) ; urlsTable . getColumnExt ( 0 ) . setCellRenderer ( new DefaultTableRenderer ( new MappedValue ( StringValues . EMPTY , IconValues . NONE ) , JLabel . CENTER ) ) ; urlsTable . getColumnExt ( 0 ) . setHighlighters ( new ProcessedCellItemIconHighlighter ( 0 ) ) ; urlsTable . getColumnModel ( ) . getColumn ( 0 ) . setMinWidth ( 80 ) ; urlsTable . getColumnModel ( ) . getColumn ( 0 ) . setPreferredWidth ( 90 ) ; // processed urlsTable . getColumnModel ( ) . getColumn ( 1 ) . setMinWidth ( 60 ) ; urlsTable . getColumnModel ( ) . getColumn ( 1 ) . setPreferredWidth ( 70 ) ; // method urlsTable . getColumnModel ( ) . getColumn ( 2 ) . setMinWidth ( 300 ) ; // name urlsTable . getColumnModel ( ) . getColumn ( 3 ) . setMinWidth ( 50 ) ; urlsTable . getColumnModel ( ) . getColumn ( 3 ) . setPreferredWidth ( 250 ) ; // flags urlsTable . setName ( PANEL_NAME ) ; urlsTable . setDoubleBuffered ( true ) ; urlsTable . setSelectionMode ( ListSelectionModel . MULTIPLE_INTERVAL_SELECTION ) ; urlsTable . setComponentPopupMenu ( new JPopupMenu ( ) { private static final long serialVersionUID = 6608291059686282641L ; @ Override public void show ( Component invoker , int x , int y ) { View . getSingleton ( ) . getPopupMenu ( ) . show ( invoker , x , y ) ; } } ) ; } return urlsTable ; }
Gets the scan results table .