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

All Questions

Tagged with
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 ...
ThrillerGriller's user avatar
-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 ...
G. B. Wanscher's user avatar
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? ...
Lucas Almeida's user avatar
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 ...
ChrisG29's user avatar
  • 1,571
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 ...
dluisely's user avatar
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 ...
user avatar
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 ...
Pompompurin's user avatar
-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 ...
ItsSilver's user avatar
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(...
Smooth Researcher's user avatar
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 ...
MuhammedMGS's user avatar
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 ...
Lennart's user avatar
  • 111
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 ...
Osama Bodiaf's user avatar
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 ...
user15329314's user avatar
-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 ...
Mika's user avatar
  • 3
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 ...
Blank's user avatar
  • 48

15 30 50 per page
1
2 3 4 5
8