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

setting background image for JScrollPane

Intro I created a class ChatView that extends JPanel. I added it as a parameter to my JScrollPane (to get the scrolling effect) and overrode the paintComponent method in hope of setting a background image: new JScrollPane(new ChatView){ …
hadsag
  • 11
  • 3
0
votes
1 answer

Messenger Application GUI (BoarderLayout w/ multiple panels) (JScrollPane)

Question I'm creating a GUI for a message application. the frame's layout is BorderLayout: chat on the western border, list of users on the Eastern border, and user input on the southern border. The problems: The panels aren't adhering to the…
hadsag
  • 11
  • 3
0
votes
1 answer

jscrollpane not working, probably jquery conflict?

I want to do .jscrollpane scrollbars but they are not showing up, and firebug is not picking up any errors. I'm doing cufon font replacement, a prettyPhoto lightbox, and a simple portfolio filter that sorts ul's. I've looked into jQuery noConflict…
Jay Standish
  • 3
  • 1
  • 3
0
votes
0 answers

Adding JScrollBar to JFrame

I'm currently learning the javax.swing package. Created a JFrame that currently has a JMenuBar and a JTextArea. I've been trying to add a scrollbar to my application using JScrollPane but am having no luck. The scrollbar never appears with my code…
dluisely
  • 71
  • 7
0
votes
1 answer

How to manually align, change size, and add scroll pane of JTable?

I am creating a JTable in Netbeans and am having three minor issues with the structure. I can't seem to align my table in the direction I want (Say North, East, South, or West) and now it's annoyingly hovering over my JButton. The code I wrote to…
user14410420
0
votes
1 answer

Why does the JScrollPane show up but not its scroll bar?

Here is my code. The JScrollpanel shows up but now the scrollbar. I also can't use the scroll wheel if the text goes below the area. JTextArea textArea = new JTextArea("Enter text here"); textArea.setPreferredSize(new…
0
votes
1 answer

using a GridBagLayout, JScrollpane doesn't work (or look appropriate) with JList

I'm aware there are several questions with the same title, and I've tried their answers but to no avail. I'm getting the following result with my code: It does not scroll as it should, and there's this empty little space to the right. Here is the…
toxette
  • 13
  • 5
0
votes
0 answers

setting a JScrollBar in the middle

I have a JList inside a JFrame, if enough items are added to the JList it shows a vertical or horizontal ScrollBar. The problem I am facing is when the ScrollBars appear they start at value 0. I want to start the thumb in the middle every-time it…
user17370683
0
votes
0 answers

Change the arrow button color of a JScrollPane's scrollbar

I have a JScrollPane containing a JTextArea. I know how to change the color of the thumb and the track of the ScrollPane's scrollbar but want to either change the color of the arrow buttons as well or delete them. (Rather change, if it is possible).…
Luqus
  • 109
  • 1
  • 11
0
votes
0 answers

Is there a way to draw a fixed rectangle on a JScrollPane?

I'm trying to draw a stationary rectangle on top of a JScrollPane. This would look similar to freezing the first row in Microsoft excel and scrolling down. I tried using a JLayer and LayerUI to achieve this however, I've been unable to make the…
asdf
  • 1
  • 1
0
votes
1 answer

Tabs script from jscrollpane - making one of the tabs default

I'm trying to implement tabs on a website i'm working on but i'm having trouble making the first tab default. I'm using the code from jscrollpane: