layout-manager
How to make my JComponent conform to JFrame.pack and Layout Managers?
I made a JComponent that displays a rectangle of a specified color. (Haven\'t found any other way to achieve this effect). Problem is, it doesn\'t follow JFrame.pack() and Layout Managers as expected.[详细]
2023-04-01 03:27 分类:问答Should I avoid the use of set(Preferred|Maximum|Minimum)Size methods in Java Swing?
Several times I\'ve been criticized for having suggested the use of the following methods: setPreferredSize[详细]
2023-04-01 00:13 分类:问答JavaScript / Backbone.js layout manager
I have a number of (Backbone.js) Controllers with a bunch of child elements. When the browser is resized or the model changes, I\'d like child elements of various controllers to be able to affect the[详细]
2023-03-31 13:51 分类:问答How can I change the position of a JTextField
I\'d like to know how i can change the position of a JTextField. If I do like this: top.add(tdate); it puts the JTextField on the same direction/line that my JComboBox. I\'d like to change the Y an[详细]
2023-03-31 13:28 分类:问答Java Swing pack() on a Window un-maximizes it, how to avoid that?
I\'ve a window and since I dinamically change it\'s children (sometimes I swap JPanels), I found no other solution than calling pack() on the window to get the new element displayed. Otherwise it will[详细]
2023-03-31 07:00 分类:问答java which layout manager suitable for this task?
I have a JPanel parentwith 3 JPanel children inside. They all currently make use of GridLayout and together represent a UML class. Problem is that when I add a new attribute or method, all 3 JPanel gr[详细]
2023-03-31 03:45 分类:问答JPanel doesn't call addLayoutComponent() of custom LayoutManager
I need to create a custom LayoutManager to be used by a JPanel. However, when I add a Component to the JPanel, the JPanel doesn\'t call the addLayoutComponent() method of my custom LayoutManager, eve[详细]
2023-03-30 06:03 分类:问答Why does part of my RichJLabel text look covered/hidden?
I\'ve been reading the Swing Hacks book and have used some of their code for the RichJLabel part. I understand what the code does, but not why some of the word is covered or looks hidden. It\'s not th[详细]
2023-03-29 07:27 分类:问答How to handle org.netbeans.* references when migrating from NetBeans to Eclipse
There are a number of SO threads about importing a NetBeans project into Eclipse.I have managed to do this, but one issue I haven\'t seen addressed has to do with NetBeans layout managers.Throughout t[详细]
2023-03-29 07:17 分类:问答Get gridbag constraints of a panel
I want to progamatically get the grid bag constraints of a panel which is开发者_如何学JAVA already been placed. How do i do that?? GridBagLayout has the method[详细]
2023-03-25 21:26 分类:问答