All Questions
4 questions
0
votes
2
answers
862
views
How to stop components adapting to the size of a JPanel that is inside a JScrollPane
The components inside a JPanel (which has a BoxLayout) are getting resized when there's lack of space.
The JPanel is inside a JScrollPane, but because of the fact that the components get resized, the ...
0
votes
0
answers
96
views
Resizing JScrollPane based on JDialog size
I have a resizable JDialog and 4 big components inside:
a JLabel on the top left;
a JTable on the left;
a fixed JPanel on the top;
a JScrollPane with a JPanel in a GridLayout inside it. JScrollPane ...
0
votes
2
answers
121
views
JSwing components don't appear until frame is resized [duplicate]
bit of an issue. I'm trying to make a JSwing frame with a label, textfield, and two buttons. When the routine first runs, the buttons and the textframe are invisible. When I resize the frame, the ...
0
votes
1
answer
1k
views
Component won't display unless window is resized - Java
I have problem with image visibility after click the button. I have the main class with frame:
package superworld;
import java.awt.*;
import javax.swing.*;
public class SuperWorld {
public ...