Calling setCaretPosition(0) on your text component will cause it to scroll to the top.
More Related Contents:
- Restricting JTextField input to Integers [duplicate]
- EventListenerList firing order
- Get Selected Rows in JTable using AbstractTableModel
- How to bring a window to the front?
- SwingUtilities.invokeLater() why is it needed?
- How to add MouseListener to item on Java Swing Canvas
- Resizing icon to fit on JButton in Java?
- SwingWorker, Thread.sleep(), or javax.swing.timer? I need to “insert a pause”
- Get a Swing component by name
- Java: JProgressBar (or equivalent) in a JTabbedPane tab title
- Performance of JavaFx Gui vs Swing
- dragging a jlabel around the screen
- Automated tests for Java Swing GUIs [closed]
- Closing A JOptionPane Programmatically
- java swingworker thread to update main Gui
- Setting print size of a jLabel and put a jRadiobutton on the print
- Why does this GridBagLayout not appear as planned?
- invokeAndWait method in SwingUtilities
- Close one JFrame without closing another?
- Rotate an image in java
- Choosing a file in-pane with Swing
- Why does calling dispose() on Graphics object cause JPanel to not render any components
- Creating a board game layout using JLayeredPane
- Convert a RGB Color Value to a Hexadecimal String
- how to set JFrame background transparent but JPanel or JLabel Background opaque?
- Using addMouseListener() and paintComponent() for JPanel
- Secure Desktop Mode effect for java application
- How to fit Image size to JFrame Size?
- Java Drag-n-Drop files of specific extension on JFrame
- Java JTable setting Column Width