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
7
votes
1 answer

JLabel with wrapped HTML-text as JScrollPane client

A JLabel containing HTML-text automatically wraps lines using the available space. If one adds that JLabel to a JSrollPane he has to set the preferredSize to a decent value otherwise it won`t wrap. All this should work fine along other Components…
user1817848
7
votes
3 answers

How to set the width of a JTable

I have a JTable in a JScrollPane. I want the minimum width to be around 600 as its a wide table. I tried setting the minimum size on the table, the scroll pane, and the panel its self. The size doesn't change at all, what am I missing? Its hard to…
Steve's a D
  • 3,801
  • 10
  • 39
  • 60
7
votes
4 answers

Set size of JTable in JScrollPane and in JPanel with the size of the JFrame

I want the table with the same width as the frame and also when I resize the frame the table need to be resized too. I think setSize() of JTable doesn't work correctly. Can you help me? import java.awt.Color; import javax.swing.JFrame; import…
user1761818
  • 365
  • 1
  • 7
  • 14
7
votes
1 answer

Making the JTextArea or JEditorPane in a JFrame scrollable

I've been doing some research about Swing in order to build a css editor with Java. I'm stuck trying to export CSS and HTML in JTextArea's ( I'll after create .css document. ) Here is the GridLayout that my main layout calls after clicking "Build"…
mozcelikors
  • 2,582
  • 8
  • 43
  • 77
6
votes
1 answer

How to set JScrollPane to show only a sepecific amount of rows

I only need a table to show 3 rows which get top 3 selling products from DB. The table is ready, but the there's a huge portion of table which is practically empty, except for 3 rows. How can I set height of this scrollpane to match the height of 3…
vedran
  • 2,167
  • 9
  • 29
  • 47
6
votes
2 answers

JScrollPane not working properly with hidden content

I installed jScrollPane on my website and can't make it work. My website works as follows: from the main page, pages are loaded dynamically using jQuery's load() method. In the page I load I have the following script to launch…
Masiar
  • 20,450
  • 31
  • 97
  • 140
6
votes
2 answers

Scrollbars not appearing in JScrollPane

I want to make a window with two buttons with great heights and a scrollbar on a side. The problem is that no scrollbar appears. Here is my code public class Window { /** * @param args */ public static void main(String[] args) { // TODO…
Damjan
  • 71
  • 1
  • 1
  • 4
6
votes
1 answer

Why does my jscrollpane result in odd paint calls in java swing?

I've got a routine that paints an insanely large graph inside a scroll pane. It's too big to paint before adding to the scrollpane - the menory requirements would be several gigs. Because of the size of the graph I'm rendering the chart within the…
Dave Carpeneto
  • 1,042
  • 2
  • 12
  • 23
6
votes
2 answers

Change side of a jScrollPane & change size

I want to change the side of my JScrollPane from the right (default) to the left side. How do I do this? AND: I want to change the size of JScrollBar because it's a touch-display (22") so that it can be scrolled easily. Thanks a lot!
Christian 'fuzi' Orgler
  • 1,682
  • 8
  • 27
  • 51
6
votes
5 answers

Java: JScrollPane doesn't work with GridBagLayout

In my Java application, I'm writing a component that is used to view PDF files. I had a pretty slick implementation where the user could click on the PDF and drag it to view the areas that didn't fit on the screen. But my boss didn't like it, so…
jonescb
  • 22,013
  • 7
  • 46
  • 42
6
votes
4 answers

jscrollpane block scrolling parent

Can i make jscrollpne such that parent pane doesnot scroll even when child scroll has reached its bottom. Now when child scrolling reaches bottom scrolling of parent occurs. I want parent to scroll only when mouse is out of child scrollpane.
sabithpocker
  • 61
  • 1
  • 3
6
votes
1 answer

JScrollPane - visual glitch when scrolling

There were a few topics about similar glitches in JScrollPane while scrolling like: Java Swing JScrollPane line number glitch Moving JScrollPane horizontally results in blured text But they lack SSCCE and some explanation on the case, so i will…
Mikle Garin
  • 10,083
  • 37
  • 59
6
votes
1 answer

Why JScrollPane in JOptionPane not showing all its content?

I am trying to add components to a JPanel, then put this panel into a JScrollPane, then put the JScrollPane in JOptionPane. The problem: only 19 line of components added. There is a for-loop that determine the number of lines of components, if you…
Saleh Feek
  • 2,048
  • 8
  • 34
  • 56
6
votes
1 answer

jScrollPane: horizontal scrollbar shifts left when dragging the jspDrag bit in Webkit

I've got a Webkit specific problem when using the horizontal scrollbar in combination with an anchor tag. An example of the problem is shown here: http://www.splinterarchitecten.nl/wonen-combinatie/ Please take the following steps: Use Chrome (I'm…
Vivienne
  • 600
  • 1
  • 3
  • 12
6
votes
4 answers

JTextPane prevents scrolling in the parent JScrollPane

I have the following "tree" of objects: JPanel JScrollPane JPanel JPanel JScrollPane JTextPane When using the mouse wheel to scroll over the outer JScrollPane I encounter one annoying…
exhuma
  • 20,071
  • 12
  • 90
  • 123