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
15
votes
2 answers

Why JScrollPane does not react to mouse wheel events?

I have a JScrollPane containing a panel with a BoxLayout (PAGE AXIS). My problem is that the JScrollPane does not react to mouse wheel events. To make it scroll using the mouse wheel i need to be on the JScrollBar. I found this thread and i have no…
nathan
  • 1,111
  • 3
  • 18
  • 33
14
votes
6 answers

How do I force JScrollPane to only scroll vertical?

Guys, I need to put some buttons in a jscrollpanel, but the JScrollPane won't create a scroll vertically. I'm using a JPanel inside the JScrollPane which is using the simple FlowLayout layout. How can I make the JScrollPanel to scroll only in the…
Marcos Roriz Junior
  • 4,076
  • 11
  • 51
  • 76
14
votes
7 answers

JScrollPane and JList auto scroll

I've got the next code: listModel = new DefaultListModel(); listModel.addElement(dateFormat.format(new Date()) + ": Msg1"); messageList = new JList(listModel); messageList.setLayoutOrientation(JList.VERTICAL); messageScrollList…
dododedodonl
  • 4,585
  • 6
  • 30
  • 43
14
votes
3 answers

jScrollPane and jQuery 1.8.0

After update to jQuery 1.8.0, jScrollPane gives me this error: Uncaught Error: Syntax error, unrecognized expression: [type=text/javascript],not([type]) in this line: $("script",elem).filter('[type=text/javascript],not([type])').remove(); Can…
rgomesf
  • 702
  • 1
  • 10
  • 20
13
votes
4 answers

Making image scrollable in JFrame contentpane

I am trying to display a large image inside a JFrame's contentpane. I would like to make the image or contentpane scrollable as the image is large. I tried to do it using Jscrollpane and add it into the contentpane but it didn't work. Did some…
Noble
  • 191
  • 1
  • 3
  • 12
13
votes
1 answer

JScrollpane resizing with variable-sized content

My resizable JScrollPane's content has a minimum width. If the JScrollPane is smaller than this width, horizontal scroll bars should appear. If it's greater than this width, the viewport content should expand to fill up the entire viewport. Seems…
Sam Barnum
  • 10,559
  • 3
  • 54
  • 60
13
votes
5 answers

JScrollPane scrolling with arrow keys

I've a JTextArea component inside JScrollPane and the text area is not editable. I would like to enable scrolling of the text area with up and down arrow keys (i.e. pressing the arrow keys will scroll the text area by one line). Any ideas how to…
JooMing
  • 922
  • 2
  • 7
  • 14
13
votes
7 answers

Swing: Scroll to bottom of JScrollPane, conditional on current viewport location

I am attempting to mimic the functionality of Adium and most other chat clients I've seen, wherein the scrollbars advance to the bottom when new messages come in, but only if you're already there. In other words, if you've scrolled a few lines up…
I82Much
  • 26,901
  • 13
  • 88
  • 119
13
votes
3 answers

Scrollable JDesktopPane?

I'd like to add scrolling capability to a javax.swing.JDesktopPane. But wrapping in a javax.swing.JScrollPane does not produce the desired behavior. Searching the web shows that this has been an issue for quite some time. There are some solutions…
Greg Mattes
  • 33,090
  • 15
  • 73
  • 105
12
votes
3 answers

Java / Swing : JTextArea in a JScrollPane, how to prevent auto-scroll?

here's a runnable piece of code that shows what my "problem" is. I've got a JTextArea wrapped in a JScrollPane. When I change the text of the JTextArea, the JScrollPane scrolls automatically to the end of the text and I don't want that. Here are my…
SyntaxT3rr0r
  • 27,745
  • 21
  • 87
  • 120
12
votes
3 answers

Jquery Lazyload callback

I am currently using Jquery Lazy Load and I was wondering if there is a way of making a callback when all the images from my container ended loading (when lazy load has made all his magic). The reason for this is that I am using jScrollPane Plugin…
Alvaro
  • 9,247
  • 8
  • 49
  • 76
11
votes
4 answers

JOptionPane and scroll function

I want to JList a lot of results in a JOptionPane, however, I'm not sure how to add in a scroll function should there be too many results. How would I add a scroll bar to a JOptionPane? Any help would be great. Thanks.
user1060187
  • 957
  • 5
  • 12
  • 28
11
votes
5 answers

How do I make JScrollPane scroll to follow input focus?

I have a Swing app with a large panel which is wrapped in a JScrollPane. Users normally move between the panel's subcomponents by tabbing, so when they tab to something out view, I want the scroll pane to autoscroll so the component with input focus…
gustafc
  • 28,465
  • 7
  • 73
  • 99
11
votes
4 answers

Blue border on jScrollPane div

Live example: http://www.legodata.com/kc/kc.html I've got a border display issue with jScrollPane, would you know which css rule to use to remove this border? when clicking inside it, it displays a blue border around the jScrollPane div, it…
Alex
  • 26,406
  • 5
  • 30
  • 36
11
votes
1 answer

JScrollpane needs to shrink its width

I have a JScrollpane that has a JPanel on the inside (and the panel contains some JLabels). I want resizing the scroll pane to actually change its size (possibly below the preferred size of the inner components), not just the size of the…
Mike
  • 536
  • 1
  • 4
  • 10