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

How to get horizontal scroll bars in JScrollPane

I have a panel layout issue that I can't seem to solve. I have the following code: public class Test extends ApplicationFrame { public Test(String title) { super(title); JPanel jpanel = new JPanel(); …
Gavin Miller
  • 43,168
  • 21
  • 122
  • 188
5
votes
3 answers

Moving JScrollPane horizontally results in blured text

I have a TextArea inside JScrollPane inside standard JPanel. JPanel panelMain = new JPanel(); panelMain.setBorder(titledBorder1); panelMain.setBounds(new Rectangle(2, 5, 970, 700)); panelMain.setLayout(null); JTextArea…
Peter Csiba
  • 461
  • 2
  • 10
5
votes
1 answer

JTable not visible when adding with JScrollPane

i am working on a gui based project and i need to add a jtable in a jpanel.But i am not getting why the table is not being displayed when adding with a scrollpane.Also when adding without scrollpane,the table header is not displayed. Thanks for any…
user1718945
  • 51
  • 1
  • 2
5
votes
3 answers

Use a absolute layout inside a JScrollPane

I need to use a JScrollPane with absolute layoute. I know that the use of setLayout(null) is not recommendable at all. I've been reading that if you want to use the absolute layout with a JScrollPane it is necessary to set the preferred size…
Jonás
  • 1,459
  • 4
  • 27
  • 43
5
votes
4 answers

add scrollpane to jpanel when the panel is full (java)

I am working on java swing application and I am adding components dynamically in a JPanel. I want to set a JScrollPane on this panel and only if the panel is full we can see this scrollpane. How can I do it on this : package add_button; import…
Adel Bachene
  • 974
  • 1
  • 14
  • 34
5
votes
2 answers

JButton text and image icon are cut off with elipsis

I am a begining programmer and am building a simple window with buttons and a scrollbar. When I compile my code, the text on my buttons is cut off with an elipsis and the image icon does not show. I have tried compiling it in both eclipse and…
user1590738
  • 51
  • 1
  • 2
5
votes
1 answer

How to set insets inside JScrollPane object?

I have JScrollPane which contains only one instance of JTree. How can I set margin around JTree inside of JScrollPane? I have such a code tree.setPreferredSize(new Dimension(200, 200)); JScrollPane scrollerTree = new JScrollPane(tree,…
tomas.teicher
  • 913
  • 3
  • 13
  • 26
5
votes
2 answers

How to prevent JScrollPane from scrolling when arrow keys are pressed

I have a JPanel inside of a JScrollPane and the JPanel uses the arrow keys in a function. Its annoying that the JScrollPane scrolls when the arrow keys are pressed. How do i make it so that the JScrollPane doesn't scroll when the arrow keys are…
John
  • 3,769
  • 6
  • 30
  • 49
4
votes
2 answers

Sizing issue with scrollable JTextField

I have a form with lots of text fields and some of those text fields may contain very long strings. To make it work I made those text fields scrollable using this code: JScrollPane scroll = new JScrollPane(textField); scroll.setPreferredSize(new…
GrayR
  • 1,395
  • 2
  • 19
  • 32
4
votes
1 answer

jScrollPane won't maintain its position when dynamic content is added or subracted (jQuery)

I'm adding content dynamically into my jScrollPane DIV, and I've finally made it expand the pane height or get rid of it depending on the amount of content, however I need it in this instance not to scroll back up to the top every time something is…
Mr.2
  • 155
  • 9
4
votes
1 answer

jScrollPane - MouseWheel not working

I'm using jScrollPane, simply because it was the first thing on Google and I'm very tired. So, I'll start by saying that I'm not opposed to using something different. I've got a 2-column section. The right column uses the jScrollPane plugin and has…
Steve
  • 569
  • 8
  • 20
4
votes
1 answer

Custom height of the scrollbar in jScrollPane jquery plugin

I'm using the jScrollPane jQuery plugin (http://jscrollpane.kelvinluck.com) to implement custom scrollbar in my application. However, I need to be able to modify the height of the jspDrag element. It seems that the height of the element is dependent…
YD8877
  • 10,401
  • 20
  • 64
  • 92
4
votes
2 answers

Floating JButton in left corner

I have a huge JPanel so it is scrollable. In this JPanel I have JButton at the right corner. When I want to push it I always need to scroll here. Is it possible to have floating JButton at the right corner of my application ? if yes please help me
hudi
  • 15,555
  • 47
  • 142
  • 246
4
votes
2 answers

How can I get selected JScrollPane element?

All I want to do is when user selects one element on the JScrollPane and clicks button, I want to grab this object/element of the JList it holds. How can I do that?
lunar
  • 1,172
  • 7
  • 18
  • 29
4
votes
3 answers

Lock JScrollPane to bottom of JTextArea (java swing)

I currently have a setup where I have a JTextArea inside a JScrollPane so that you can scroll though the text in the box. What I would like to do is set the JScrollPane up so that whenever new text is added to the box (always at the bottom on a new…
user843337