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
0
votes
0 answers

eclipse ide java not loading jpanels

so my problem is quite bizarre. So I am trying to write a java program in the eclipse ide. I have one JFrame and multiple JPanels added to it. You can navigate through the JPanels via buttons setting one panel to not be visible and another to be…
jw-de
  • 39
  • 4
0
votes
0 answers

Set JScrollPane's height relative to its parent container's height

I have a JScrollPane containing a JTable in a GridBagLayout. When I resize my JFrame containing the layout pane, the table resizes horizontally but not vertically. Even if I have GridBagConstraints.fill set to GridBagConstraints.BOTH. I want to have…
Luqus
  • 109
  • 1
  • 11
0
votes
1 answer

jScrollPane not supported by certain objects? No custom css applied to scrollbars

I'm sorry if this is a very simple question, but I can't seem to find the answer on SO or in the jScroll google group. Currently, my code is essentially:
Content here.
Then, inside of a function called in…
Sisi
  • 1,516
  • 2
  • 9
  • 11
0
votes
0 answers

Add various JPanels into a JScrollPane

I have to put different JPanels into a JScrollPane. I am using a JFrame as it is defined below: public class VistaFCFS extends JFrame { private final JScrollPane panelScroll = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,…
0
votes
1 answer

Cannot set maximum height of JEditorPane inside JScrollPane inside JDialog

So I want to achieve something very simple. In my application, users can consult the content of some files. First of all, the content of the files is in HTML, so I used JEditorPane to display it. Secondly, the file content is a bit long. Since I…
Mo Ben
  • 11
  • 3
0
votes
0 answers

I can't make JScrollPane show the list of JLabels

What I have: there are names of fonts on my computer (fontMassive.getFont[]); What I need: Scrollable list of JLabel components named by these fonts; Java shows to me one String without scroll; I tried to replace FlowLayout with BorderLayout so that…
0
votes
1 answer

TypeError when using jscrollpane

Folks, this one is killing me.... I'm using jscrollpane in a lot of places on my site and all is fine. On one (ironically simple page), i have some edit fields that happen to be in a div that has jscrollpane applied to it. Scrolling is fine. the…
djeetee
  • 1,799
  • 7
  • 24
  • 36
0
votes
0 answers

dynamically add JLabels to JScrollPane

I'm trying to build an GUI application with Java Swing. There is a button which adds a new JLabel on click. That's working well, but when the number of labels increases more than the panel size, I can't scroll down. When I tried to add a JScrollPane…
0
votes
0 answers

Why does this JScrollPane never function in this specific generated window?

Although I have successfully created windows with scrollbars, I have one particular case where the scrollbars will not appear even though the content within the JScrollPane is too large for the viewing area. I have a button in a window that opens a…
0
votes
1 answer

What am I not doing that I should

I have been trying to debug a click on a thumbnail sized "jump map" initiating scrollTo on a large 8000x6000px full sized map (main_map) but it was not behaving and I become very confused so I went back to basics. You will see below the setup is…
Andrew Seabrook
  • 397
  • 2
  • 17
0
votes
1 answer

Problems removing and replacing components from JScrollPane

I am having problems changing JScrollPane components. I have an ArrayList named textFields from which I want to take elements and add to my scrollPane. Can someone please help me? I cannot seem to remove the scrollPane's elements or seem to add the…
HappyJoy
  • 13
  • 6
0
votes
0 answers

display JScrollpane horizontal scrollbar for Jtable data

I have a table with 5 columns and my last column is the working days of a teacher. the user select the days the teacher work with a checkbox, and the row is added to the Jtable when the user press the add button. I am limited in my width and want to…
Amit Amir
  • 25
  • 7
0
votes
0 answers

ScrollPane Text always starts in the bottom

Basically my program has a JTabbedPane and each tab has a JTextPane in a JScrollPane. Somehow but always text starts from the bottom. How can I fix that? I tried to put this, but it didn't work. JScrollBar vertical =…
Terranova
  • 1
  • 1
0
votes
1 answer

JTable not visible inside JScrollPane

I have a JTable inside a JScrollPane. I want to show the table only when a particular button is pressed otherwise it should not be shown. Inorder to incorporate that I have set the setVisible method of the ScrollPane to false while declaring and I…
0
votes
1 answer

ScrollBar vanishes when JFrame is resized

I created a JScrollPane with a JTable on it. When the table's height is larger than the height of the scroll pane, a scroll bar appears. If minimize the JFrame although I didn't change the size of it, the scroll bar vanishes and the scroll pane…
Luqus
  • 109
  • 1
  • 11
1 2 3
99
100