Search in sources :

Example 26 with JScrollBar

use of javax.swing.JScrollBar in project Payara by payara.

the class ResultsPanel method setDetailText.

public void setDetailText(String details) {
    detailText.setText(details);
    JScrollBar scrollBar = textScrollPane.getVerticalScrollBar();
    if (scrollBar != null) {
        scrollBar.setValue(0);
    }
}
Also used : JScrollBar(javax.swing.JScrollBar)

Aggregations

JScrollBar (javax.swing.JScrollBar)26 JScrollPane (javax.swing.JScrollPane)6 Dimension (java.awt.Dimension)5 JTextArea (javax.swing.JTextArea)5 Point (java.awt.Point)4 JFrame (javax.swing.JFrame)3 JLabel (javax.swing.JLabel)3 JViewport (javax.swing.JViewport)3 GridBagConstraints (java.awt.GridBagConstraints)2 JButton (javax.swing.JButton)2 JPanel (javax.swing.JPanel)2 JPopupMenu (javax.swing.JPopupMenu)2 JTabbedPane (javax.swing.JTabbedPane)2 JTextPane (javax.swing.JTextPane)2 JmriJFrame (jmri.util.JmriJFrame)2 GCResourceGroup (com.tagtraum.perf.gcviewer.view.model.GCResourceGroup)1 Component (java.awt.Component)1 GridBagLayout (java.awt.GridBagLayout)1 Insets (java.awt.Insets)1 Scrollbar (java.awt.Scrollbar)1