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.
Several times I\'ve been criticized for having suggested the use of the following methods: setPreferredSize
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
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
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
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
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
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
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
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