Code example for JScrollPane

Methods: setBordersetViewportView

0
        info.setWrapStyleWord(true);
        info.setOpaque(false);
        info.setLineWrap(true);
        info.setColumns(20);
 
        JScrollPane jScrollPane1 = new javax.swing.JScrollPane();
        jScrollPane1.setViewportView(info);
        jScrollPane1.setBorder(null);
         
        info.setText("This is a simple listener that prints short summary log to console while JMeter is running in non-GUI mode. "
                + "It also writes the same info into jmeter.log in GUI mode." 
                + "\n\nNote that response time and latency values printed are averages."); 
 
        add(jScrollPane1, BorderLayout.CENTER);
    } 
}