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 (jQuery plugin)

  • jScrollPane is a cross-browser jQuery plugin by Kelvin Luck which converts a browser's default scrollbars (on elements with a relevant overflow property) into an HTML structure which can be easily skinned with CSS. Project on GitHub.

JScrollPane (Java Swing component)

  • Provides a scrollable view of a lightweight component. A JScrollPane manages a viewport, optional vertical and horizontal scroll bars, and optional row and column heading viewports.
2703 questions
112
votes
9 answers

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, ludicrously slow. No matter what size I make the…
Erick Robertson
  • 32,125
  • 13
  • 69
  • 98
68
votes
8 answers

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 user don't have to do manual scroll down to see…
Amit
  • 33,847
  • 91
  • 226
  • 299
52
votes
5 answers

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 a new row is added to the table. For JLists…
Chris Dail
  • 25,715
  • 9
  • 65
  • 74
45
votes
5 answers

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-bar. Anyone has idea on this?
Mr CooL
  • 1,529
  • 8
  • 23
  • 27
40
votes
6 answers

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 remove it but so far no luck. A JTable without the…
sproketboy
  • 8,967
  • 18
  • 65
  • 95
37
votes
2 answers

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 fast. The unit of scroll increments seem to be…
josamuel
  • 373
  • 3
  • 4
33
votes
4 answers

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")); // create the middle panel components display =…
Ravi
  • 401
  • 2
  • 8
  • 12
22
votes
4 answers

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 in either way. How to achieve such a thing?
aps
  • 2,452
  • 10
  • 35
  • 47
22
votes
8 answers

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?
Krigath
  • 321
  • 1
  • 2
  • 6
20
votes
2 answers

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 make it faster? My code is : JPanel panel = new…
Ronak Jain
  • 2,402
  • 2
  • 24
  • 38
19
votes
5 answers

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 if the table is too short, but I want to keep it…
Alex Bliskovsky
  • 5,973
  • 7
  • 32
  • 41
18
votes
8 answers

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 there should be a method like…
phunehehe
  • 8,618
  • 7
  • 49
  • 79
16
votes
5 answers

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. Unfortunately does not work as I…
FiniteRed
  • 810
  • 3
  • 10
  • 20
16
votes
4 answers

Javascript problem with iframe that's hidden before loaded

I have a page that contains an iframe that gets loaded using Javascript: index.html
Aistina
  • 12,435
  • 13
  • 69
  • 89
15
votes
2 answers

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 new line is added. How can I accomplish…
itro
  • 7,006
  • 27
  • 78
  • 121
1
2 3
99 100