layout-manager
Problems with my GridLayout
I have a GridLayout 2开发者_运维技巧 rows by 5 columns, and I want to make the height of the first row to something like 50, and the second row to 200. I know GridLayout creates equally-sized cells, s[详细]
2023-03-19 08:09 分类:问答Why is it frowned upon to use a null layout in Swing?
Recently, I started creating a program for the company I work for. Just as background info, I\'m still a student and a beginner programmer, so my solution is probably not recommended and I didn\'t kno[详细]
2023-03-18 02:35 分类:问答Unable to size JButton
I am attempting to add a button to my JFrame. I am unable to assign the JButton to a certain size. I have tried[详细]
2023-03-17 17:17 分类:问答Incorrect GridBagLayout behaviour
When I resize JFrame, the table (or more specifically the scrollPane) squishes into a little rectangle (with remains the same, but height is more like 5-10 pixels).[详细]
2023-03-17 07:22 分类:问答Java Swing: Choosing the correct LayoutManager
I\'m building a PropertyPanel. Currently I\'m using a GridLayout to manage the JLabels and their corresponding fields where I can specify the value. But the problem is that the GridLayout automaticall[详细]
2023-03-15 11:47 分类:问答JLabel.setVisible(false) make other components' position change
I meet a relayout problem that is in my swing application I add four components (two JLabels, one JTextField and one table, each occupies one row) to a panel by using GridBagLayout, for some logic, I[详细]
2023-03-13 00:09 分类:问答Swing: vertically stacked components without MigLayout
I finally got the behavior I want for vertically stacking components that have a preferred height that changes with time. But I needed to use MigLayout.[详细]
2023-03-12 16:29 分类:问答Swing: proper layout manager interaction with upper-level layout manager?
I\'m experimenting with a custom LayoutManager and I don\'t understand the subtleties of using it within a component that itself has an upper-level layout manager.[详细]
2023-03-12 09:04 分类:问答Swing GUI listeners without AWT
I am a starting Java developer, learning just from internet tutorials. I am learning full-screen GUI applications. I was told yesterday that I shouldn\'t use AWT in my programs because it is outdated.[详细]
2023-03-10 14:15 分类:问答Resizable Swing layout with buttons arranged according to variable dimensions
I would like to make a layout using Java Swing which looks like the following drawing. (source: braun-abstatt.de)[详细]
2023-03-07 12:33 分类:问答