layout-manager
Laying ot components in Java Swing
Oh hay there, didn\'t see you. I was wondering if there is a better, more efficient way of formatting the labels, panels, and buttons in java then what I have done below. Here is my code, I want to ma[详细]
2023-01-11 18:45 分类:问答How to build a custom draw2d layoutmanager?
I would like to have a layout manager that can arrange two elements as follows: one main element ABCDEF centered[详细]
2023-01-07 07:53 分类:问答How can I "pack()" a printable Java Swing component?
I have implemented a Java Swing component that implements Printable. If I add the component to a JFrame, and do this.pack(); on the JFrame, it prints perfect. But if I don\'t add the component to a JF[详细]
2023-01-01 10:31 分类:问答How can I control the width of JTextFields in Java Swing?
I am trying to have several JTextFields on a single row, but I don\'t want them to have the same width. How can I control the width and make some of them wider than others? I want that they together t[详细]
2022-12-31 16:06 分类:问答Swing layout - Using a grid while keeping component dimensions
I\'d like to make a login bar for an application and I can\'t figure out how to organize a series of JLabels and JTextFields such that they are organized in a horizontal grid without these same compon[详细]
2022-12-31 12:56 分类:问答Best Practice Guide: Swing [duplicate]
This question already has answers here: Java AWT/SWT/Swing: How to plan a GUI? (10 answers) Closed 8 years ago.[详细]
2022-12-28 07:08 分类:问答Two panel layout in java (first panel has fix size, second has remainder size)
I want some like this: How make it ideologically 开发者_如何学编程correct?Your requirement seems to be a relatively simple use of BorderLayout.[详细]
2022-12-25 00:49 分类:问答Making BoxLayout move components to top while stacking left to right
I have a JPanel which uses a BoxLayout in the X_AXIS direction. The problem I have is best shown by an image:[详细]
2022-12-22 11:30 分类:问答Searching for a Java layoutmanager which hides elements if space is getting short
I\'m searching for a Java layoutmanager which is able to automatically hide (less important) elements, defined by me, if the user scales down the window size.[详细]
2022-12-20 03:38 分类:问答A java sidebar with GridBagLayout
I am attempting to draw a sidebar for a project that I am working on. I chose to use GridBagLayout because I became frustrated with the limitations of BoxLayout. Could someone help explain what I am d[详细]
2022-12-14 04:46 分类:问答