Questions tagged [jscrollpane]
The tag jscrollpane could be used for questions about two topics: 1) a Java Swing component named JScrollPane, 2) a jQuery plugin. Please verify the companion tags to clarify the context of the question.
jscrollpane
2,713
questions
118
votes
9
answers
65k
views
How do I speed up the scroll speed in a JScrollPane when using the mouse wheel?
I see the method JScrollPane.setWheelScrollingEnabled(boolean) to enable or disable the mouse wheel scrolling. Is there any way to adjust the speed of the scrolling, though? It is, in my opinion, ...
70
votes
8
answers
106k
views
How to set AUTO-SCROLLING of JTextArea in Java GUI?
I have embedded a JTextArea on a JScrollPane and am using that JTextArea for output.
I want that whenever the ouput goes beyond the size of the JTextArea, the JTextArea scrolls automatically so that ...
52
votes
5
answers
54k
views
JTable Scrolling to a Specified Row Index
I have a JTable that is within a JScrollPane. Rows are added to the table at runtime based on events that happen in my application. I want to have the scoll pane scroll to the bottom of the table when ...
46
votes
5
answers
105k
views
JTable with horizontal scrollbar
Is there any way to enable horizontal scroll-bar whenever necessary?
The situation was as such: I've a JTable, one of the cells, stored a long length of data. Hence, I need to have horizontal scroll-...
40
votes
6
answers
34k
views
How to get rid of the border with a JTable / JScrollPane
If you run the small sample below you'll see a border around the center region. I'm not sure why this border is showing.
It happens when a JTable is in a JScrollPane. I tried various things to ...
37
votes
2
answers
5k
views
After mac os sierra update facing scrolling issue with Java applications like Intellij
After the recent update, Mac os Sierra, to my Macbook pro, I'm facing scrolling issues with all Java applications like Intellij IDEA community edition.
The scrolling in the editor panes are extremely ...
33
votes
4
answers
184k
views
Add scroll into text area
How can I add the scroll bar to my text area. I have tried with this code but it's not working.
middlePanel=new JPanel();
middlePanel.setBorder(new TitledBorder(new EtchedBorder(), "Display Area&...
23
votes
8
answers
62k
views
Making a JScrollPane automatically scroll all the way down
I am trying to implement a JScrollPane with a JTextArea. The JTextArea is being appended to, and I want the JScrollPane to keep scrolling down as more text is added. How can this be achieved?
22
votes
4
answers
29k
views
Scroll Event of a JScrollPane
It's strange that JScrollPane doesn't have a method addAdjustmentListener(). Yet adjustmentListener is said to be used with scrollbars. I want something to happen whenever the JScrollPane is scrolled ...
21
votes
2
answers
11k
views
How to increase the slow scroll speed on a JScrollPane?
I am adding a JPanel in a JScrollPane in my project.
All is working fine, but there is one problem about mouse scroll using the mouse-Wheel in JPanel. It's speed is very slow on scrolling. How to ...
19
votes
5
answers
13k
views
Shrink JScroll Pane to same Height as JTable
I currently have JTables nested in JScrollPanes like so:
My problem is that the number of rows in each table is variable when the table is created. What I want to do is make the JScrollpane smaller ...
18
votes
8
answers
52k
views
disable horizontal scroll in jscrollpane
I have a JScrollPane with FlowLayout that I want to have a fixed width. It should be scrolling vertically only, and the contents should be rearranged automatically when I resize the window. I think ...
16
votes
5
answers
56k
views
Java JPanel inside JScrollPane?
I have a JFrame, in this JFrame I have a JPanel that I draw on, this Panel can be any size and so I placed it into a JScrollpane to let me scroll when the panel is larger than the window screen size.
...
16
votes
4
answers
22k
views
Javascript problem with iframe that's hidden before loaded
I have a page that contains an iframe that gets loaded using Javascript:
index.html
<iframe id="myFrame" width="800" height="600" style="display: none;"></iframe>
<div id="loader">&...
15
votes
2
answers
19k
views
Automatically scroll to the bottom of a text area
I have a text area with scroll bar. At regular intervals, I am adding new lines of text to it. I would like the text area to automatically scroll to the bottom-most entry (the newest one) whenever a ...