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
2,713
questions
0
votes
0
answers
22
views
JScrollPane scroll only appears at bottom
I have this JFrame that has a JScrollPane and a JTextArea inside it, it works okay but the scroll button only appears at the bottom, I want it to show at the top as default. How can I change this?
...
0
votes
1
answer
130
views
Java swing: Add scroll bar to textarea
I have a text area that updates a button press (this updating works fine). When it updates, a long list appears in the text area that requires a scroll bar. However, when I add the last two lines ...
0
votes
2
answers
57
views
dialog empty with JScrollPane und JPanel
i am trying to add the content to the mainPanel and mainpanel to the mainScrollPane. However, an empty dialog is displayed.
IMPORTANT: it must be implemented with JPanel and JScrollPane...
`...
0
votes
0
answers
97
views
JScrollPane takes up whole JFrame
I'm trying to create a form for a Task List, that will have a list of tasks sitting in a JScrollPane, with some buttons below it, to essentially look like this:
The problem I'm running into is that ...
0
votes
1
answer
135
views
How to add Two components on the right side of the splitted plane in Java Swing
I want to add two components on the right side, i.e. JTextField and JTable on right side of the split plane. The below code is not working. What shall I do?
The result of the above code :( but if I ...
0
votes
1
answer
88
views
How to show the Button in the bottom of the JScrollPane Inside a JFrame
I am working on an application in which I am trying to show a banner in a JFrame. Inside the JFrame, I using a JScrollbar which is using JEditorPane to display content of a HTML page.
public ...
0
votes
0
answers
87
views
Scaling JScrollPane with picture
I'm new to java and swing:). I need help with scaling JScrollPane when I scaling picture whit method scale :
Graphics2D g2 = (Graphics2D) g;
g2.scale(1, 0.3);//I need to scale my picture
When I apply ...
0
votes
0
answers
53
views
How to make the default position of horizontal JScrollBar on the right?
I have a program I am working on, the horizontal scrollbar should be in the right-hand position by default, I tried to use Viewport() but it doesn't work. Any ideas?
jScrollPane4.getViewport()....
0
votes
0
answers
39
views
Graphics2D, Scale picture and JScrollPane
I allowed myself to copy an example from the answer because it concerns my problem.
JScrollPane & Graphics2D
I've problem with connection JScrollPane with Graphics2D scale. Is there any ...
0
votes
1
answer
228
views
How to make JScrollPane dynamically scroll to the end after adding components?
Here is my code for the ScrollPane
public class CustomScrollPane extends JScrollPane {
private static CustomScrollPane instance = null;
public CustomScrollPane () {
super(panel....
0
votes
1
answer
124
views
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 ...
0
votes
1
answer
123
views
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 ...
0
votes
0
answers
44
views
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 ...
0
votes
1
answer
75
views
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 ...
0
votes
1
answer
48
views
Why does the JScrollPane show up but not its scroll bar? [duplicate]
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");
...