Skip to main content
The 2024 Developer Survey results are live! See the results

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.

8 votes
3 answers
10k views

Resizing issue with canvas within jscrollpane within jsplitpane

I'm creating an application using the NetBeans GUI Editor, in which I want to have a JSplitPane, the top component of which will be a Canvas within a JScrollPane and the bottom component will be a ...
Sakis Vtdk's user avatar
8 votes
3 answers
23k views

Java - Transparent JScrollPane

I have a JTextArea and it's riding on top of a JScrollPane. Anyways, I know I can use the getViewPort() method to set the opaque property of the viewport, but I cannot seem to find any sign of how to ...
test's user avatar
  • 18.1k
6 votes
1 answer
5k views

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 ...
Saleh Feek's user avatar
  • 2,076
70 votes
8 answers
106k views

How to set AUTO-SCROLLING of JTextArea in Java GUI?

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 that ...
Amit's user avatar
  • 34.4k
46 votes
5 answers
105k views

JTable with horizontal scrollbar

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 scroll-...
Mr CooL's user avatar
  • 1,579
0 votes
2 answers
564 views

How to make JScrollPane (In BorderLayout, containing JPanel) smoothly autoscroll

I'm trying to have a JPanel of varying size (potentially much wider than the standard screen) inside of a JScrollPanel. Currently it works out great, and I have configured the scrollbars to work fine ...
RamiMac's user avatar
  • 211
4 votes
2 answers
9k views

Java Swing : why must resize frame, so that can show components have added

I have a simple Swing GUI. (and not only this, all swing GUI I have written). When run it, it doesn't show anything except blank screen, until I resize the main frame, so every components have painted ...
hqt's user avatar
  • 30.1k
0 votes
3 answers
2k views

Make JScrollPane control multiple components

For my application I am designing a script editor. At the moment I have a JPanel which contains another JPanel that holds the line number (positioned to the left), and a JTextArea which is used to ...
user3166216's user avatar
12 votes
3 answers
17k views

Java / Swing : JTextArea in a JScrollPane, how to prevent auto-scroll?

here's a runnable piece of code that shows what my "problem" is. I've got a JTextArea wrapped in a JScrollPane. When I change the text of the JTextArea, the JScrollPane scrolls automatically to the ...
SyntaxT3rr0r's user avatar
  • 28.1k
15 votes
2 answers
10k views

Why JScrollPane does not react to mouse wheel events?

I have a JScrollPane containing a panel with a BoxLayout (PAGE AXIS). My problem is that the JScrollPane does not react to mouse wheel events. To make it scroll using the mouse wheel i need to be on ...
nathan's user avatar
  • 1,119
3 votes
3 answers
3k views

How to put a component on top of others?

I have a JScrollPanel that includes a big panel which it's self includes 3 inner panels. i want to put a panel (for example) in a special place so that always could be seen, I mean the user can scroll ...
Soheil's user avatar
  • 1,696
2 votes
1 answer
5k views

how to add jscrollpane to jframe?

I have following source code...Can someone please give me an advice how to add jscrollpane onto jframe? I tried several time to add it to jframe but without any progress. It is not even showing. ...
Michael's user avatar
  • 321
52 votes
5 answers
54k views

JTable Scrolling to a Specified Row Index

I have a JTable that is within a JScrollPane. Rows are added to the table at runtime based on events that happen in my application. I want to have the scoll pane scroll to the bottom of the table when ...
Chris Dail's user avatar
  • 25.9k
8 votes
2 answers
16k views

Scroll a JScrollPane to a specific row on a JTable [duplicate]

Possible Duplicate: JTable Scrolling to a specified row index I have a JTable and I programmatically need to select a row by using this code: myTable.setRowSelectionInterval(i, j); (where i ...
David's user avatar
  • 16k
5 votes
3 answers
2k views

How to smoothen scrolling of JFrame in Java

I have a JFrame in my Java application that contains a JPanel where I have some drawing objects created at run-time. The problem is while scrolling the JFrame for large figures the scrolling slows up ...
Sanyam Goel's user avatar
  • 2,170

15 30 50 per page
1
2 3 4 5
24