All Questions
Tagged with jscrollpane jframe
117
questions
0
votes
1
answer
55
views
JPanel.getHeight() doesn't exactly work as intended
So I have a program that utilizes JFrame and JPanel and such. I have multiple JPanels with JTextAreas within them, like a list. I'm trying to create JScrollPane that allows me to scroll through all ...
-1
votes
1
answer
59
views
Java Swing - JFrame GUI Elements made invisble on resize and open
I have a secondary JFrame for a settings panel, however, whenever it is opened or resized all elements inside it (a lot of textfields, sliders and so forth) go invisible.
I can get the GUI elements ...
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
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
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
0
answers
57
views
Concurrency problem in updating Jtable/Jframes?
I will try to describe the problem as accurately as possible, since this is a legacy project from someone else that I am trying to fix (to the best of my abilities).I cannot build an accurate working ...
-1
votes
1
answer
40
views
How to make it so that when I put a dynamically resizable JPanel in a JScrollPane it works?
So I made a program where a JPanel's size are dynamically updated by the click of a button and the updated panel is added to a JScrollPane. But I can't quite figure out the error in this code. The ...
0
votes
0
answers
49
views
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(...
2
votes
0
answers
149
views
Java swing JTextArea & JScrollPane, vertical scrolling works but not horizontally, one line goes down
I am working on a java gui project. I want to add scoll to JTextArea component. Even though I added it, only Vertical scroll works. That's why the text goes to the bottom line. I do not want this, so ...
1
vote
1
answer
150
views
Java Swing: JScrollPane doesn't work with Buffered Image in a JPanel
This is my JFrame class which should display an image which has a height and width of 2000px. The displayed area should only have a width and height of 800px and I want to be able to use the scrollbar ...
0
votes
1
answer
125
views
How to force repaint of JTable, JScrollPane?
I'm creating a top-down parser, that checks the syntax of a given source code according to a given grammar, then displays the result, within a simple GUI.
Basically, the user selects the grammar and ...
0
votes
1
answer
310
views
Java JPanel bigger than the JFrame with scrolling
I'm trying to create a JPanel in the size of the screen (It might be bigger than the JFrame) But I want the JFrame to be resizable. is it possible to see the hidden part of the JPanel (The part ...
-1
votes
1
answer
59
views
JScrollPane doesn't show up
I made a program and I want to add a JScrollPane to a JTextArea (but it doesn't show up).
Here's the code (or at least everything that has to deal with the JTextArea / JScrollPane, the whole code is a ...
0
votes
1
answer
71
views
Is there a specific way for introducing a 'setText()' JTextArea method when using the NetBeans GUI Builder?
As a school project I've been asked to make a simple text-based RPG in an object-oriented manner and using a GUI. I recently discovered that the NetBeans IDE 12.1 features a helpful GUI builder, which ...