jscrollpane Questions

4

Solved

I have a table that I want to populate when the user prompts me to do so. Problem is, I can't anticipate how many rows the table will end up having. In the constructor for my panel where the table ...
Sanhedrin asked 15/2, 2013 at 17:18

8

Solved

I am trying to implement a JScrollPane with a JTextArea. The JTextArea is being appended to, and I want the JScrollPane to keep scrolling down as more text is added. How can this be achieved?
Discontinuity asked 20/3, 2010 at 15:23

3

Solved

I'm trying to code a zoom-able image in a JScrollPane. When the image is fully zoomed out it should be centered horizontally and vertically. When both scroll bars have appeared the zooming should ...
Florance asked 26/3, 2014 at 1:14

5

Solved

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 scr...
Egyptian asked 28/11, 2010 at 19:27

5

Solved

Is there any way to enable horizontal scroll-bar whenever necessary? The situation was as such: I've a JTable, one of the cells, stored a long length of data. Hence, I need to have horizontal scro...
Foliaceous asked 16/3, 2010 at 7:28

2

Solved

I am adding a JPanel in a JScrollPane in my project. All is working fine, but there is one problem about mouse scroll using the mouse-Wheel in JPanel. It's speed is very slow on scrolling. How to...
Humanity asked 12/4, 2012 at 7:53

3

My code (Logic-wise) is all good, the only problem is that the column headers do not show up in the 2 tables (table and tableS, one for teacher and one for student details). How do I make them show...
Heck asked 18/12, 2012 at 15:13

8

Solved

I have embedded a JTextArea on a JScrollPane and am using that JTextArea for output. I want that whenever the ouput goes beyond the size of the JTextArea, the JTextArea scrolls automatically so th...
Araarab asked 26/10, 2009 at 20:4

4

How can I add the scroll bar to my text area. I have tried with this code but it's not working. middlePanel=new JPanel(); middlePanel.setBorder(new TitledBorder(new EtchedBorder(), "Display Ar...
Avertin asked 16/4, 2012 at 15:35

6

Solved

If you run the small sample below you'll see a border around the center region. I'm not sure why this border is showing. It happens when a JTable is in a JScrollPane. I tried various things to rem...
Ingenerate asked 26/7, 2010 at 9:30

5

Solved

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 ...
Panorama asked 23/11, 2011 at 16:5

9

Solved

I see the method JScrollPane.setWheelScrollingEnabled(boolean) to enable or disable the mouse wheel scrolling. Is there any way to adjust the speed of the scrolling, though? It is, in my opinion, l...
Zenda asked 7/4, 2011 at 15:21

4

Solved

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 probl...
Wilda asked 4/9, 2009 at 8:15

7

Solved

I've got the next code: listModel = new DefaultListModel(); listModel.addElement(dateFormat.format(new Date()) + ": Msg1"); messageList = new JList(listModel); messageList.setLayoutOrientation...
Fidel asked 25/1, 2010 at 13:11

2

Solved

I have a JScrollPane whose content pane is a JXList. When I use the mouse wheel on the list, the list steps three (3) items at a time. This also works for a table, regardless of row height. How can...
Eyelet asked 9/7, 2012 at 14:53

3

Solved

I'm trying to add a Vertical scrolling my java programs textarea. I am using this code to create my JScrollPane: console = my textarea. I am also Declaring JScrollPane vertical; vertical = new...
Peanuts asked 14/10, 2011 at 11:19

8

Solved

I have a JScrollPane with FlowLayout that I want to have a fixed width. It should be scrolling vertically only, and the contents should be rearranged automatically when I resize the window. I think...
Menadione asked 13/11, 2009 at 8:15

3

I have a JList with very long item names that cause the horizontal scroll-bar to appear in scroll-pane. Is there anyway that I can word wrap so that the whole whole item name appears in 2 rows yet...
Californium asked 19/11, 2011 at 20:43

5

Solved

I currently have JTables nested in JScrollPanes like so: My problem is that the number of rows in each table is variable when the table is created. What I want to do is make the JScrollpane smal...
Casto asked 29/6, 2011 at 16:24

6

Solved

I have two JScrollPanes in the same window. The one on the left is large enough to display the contents of the contained panel. The one on the right is not large enough to display its contents and ...
Entozoon asked 20/7, 2012 at 21:41

4

Solved

I'd like to achieve the following: +------------------Other container(s)-----------------+ | +------JScrollPane (vertical)-------+ | | | JTextField | | | | Box.createRigidArea (vertical) | | | | ...
Tl asked 3/4, 2013 at 9:3

2

Solved

I have a JPanel in a JScrollPane. The JPanel contains multiple JTextAreas vertically. I like to keep the scroll of the scrollpane to the top whenever the page is refreshed. Currently, the scroll a...
Additament asked 22/3, 2017 at 19:30

1

I've done a ton of research regarding this issue, but I haven't had any luck with anything I've found. It's a major roadblock in the application I'm developing. My application has a Form, which co...
Lammergeier asked 2/3, 2017 at 6:23

1

I am having trouble styling a JScrollPane. I just want to be able to change the color of both the thumb and the background (and also remove the increase/decrease buttons). So far I have tried the f...
Buke asked 12/4, 2014 at 23:38

2

Solved

After the recent update, Mac os Sierra, to my Macbook pro, I'm facing scrolling issues with all Java applications like Intellij IDEA community edition. The scrolling in the editor panes are extrem...
Watermelon asked 22/9, 2016 at 12:11

© 2022 - 2024 — McMap. All rights reserved.