All Questions
278 questions
0
votes
1
answer
48
views
What layout should I use for my JPanels to look like this?
I would like to layout some JPanel containers to look something like this:
However, I am not quite sure what layout would be the best to choose, since I am still new to using the layout manager and ...
0
votes
1
answer
481
views
How to add auto-resize components?
I'm wondering how I can add (what LayoutManager should I use) to make the app automatically adjust the components to the current size when full screen mode is enabled or even when the frame is ...
-1
votes
1
answer
62
views
I want my button not in the same row as my choose buttons in my gui? How will I do that?
How do I add a break to put my "Make pokemon" buttons and textarea not in the same row as my "Pokemon choice." I'm trying to put an empty JLabel, but I don't think it works.
public ...
2
votes
1
answer
149
views
How do I prevent component shaking with GridBagLayout?
I have a GUI with four components laid out next to each other with GridBagLayout. When I resize the window to the right, the leftmost component shakes, when I resize to the left, the rightmost.
Here ...
-3
votes
2
answers
308
views
how to make custom nested layout in java [closed]
im trying to do this form in java
and im getting this results
how do i place b6 on the top center
and b4 on the bottom center
and how can i change split panel location
-1
votes
1
answer
2k
views
Java Swing Login Form
I'm trying to create a login form using Java Swing. But I want the layout to look tighter, but still responsive.
The structure of my project
Project/
└── src
├── GUI
│ ├── Control.java
│ ...
0
votes
0
answers
33
views
How to make single resizable column with Swing?
What I want to do is to make one column with buttons, which width will be percentage (for example, 40% of frame width):
30% A 30%
30% B 30%
30% C 30%
The only thing I could come up with is to set ...
0
votes
1
answer
39
views
Is there a function to find a component layout position? [closed]
If I have a component inside a panel with a border layout (it could be any other layout), is there a way to get the component's placement in the panel layout?
For example, I add a label to a panel ...
0
votes
1
answer
199
views
Java OverlayLayout items arrangement issue
I have an issue with placing objects inside JPanel which has OverlayLayout as layout. I am creating card game and what I want is to have a story of dropped cards on the table. For instance, I would ...
2
votes
1
answer
1k
views
Java - How to center components horizontally, and stack them vertically?
I am writing a application that will take user information such as the name, email, password. To get the user information I am using JTextFields. I would like to have all the components in the center ...
0
votes
1
answer
99
views
Span multiple columns with GridBagLayout | JAVA 8
Is the following feasible with a Gridbaglayout? So that my headline has a columns width of 5 and all other elements a width of 1.
Wanted result:
+-------------------------------------------------------...
0
votes
0
answers
105
views
Why doesn't JScrollPane work when it is added to BorderLayout.NORTH?
I want to add a JScrollPane to a JFrame, and attach to its top, because if it fits on the frame, the panel in the scrollpane appears centered.The panel in the scrollpane has GridBagLayout, and has ...
0
votes
1
answer
128
views
How can I go about creating this design with Java's Swing GUI tools?
This is a mock up for what I have in mind as a layout for my project:
The way I tried to accomplish this is:
I set the entire frame to a border layout and then cut it horizontally with two panels, we'...
4
votes
1
answer
1k
views
Java UI Layouts Choice
Greetings all, I am relatively new to both UI designing and this community, so take it easy on me.
Summary: I am currently attempting to design a GUI for a native desktop application using Java swing. ...
1
vote
1
answer
135
views
Layout problems with Java Swing Tools
I am trying to make a simple GUI registration code window, that has a text to enter the code, and a button to verify if the code entered is right or wrong. Exactly like this image :
So I tried to do ...