setPreferredSize « Layout « Java Swing Q&A





1. Java's setPreferredSize won't resize JPanel    stackoverflow.com

I am struggling ( ! ) with java GUI development. All these small things that make obvious sense just don't work. I'll explain what I am trying to do and where ...

2. Java and JScrollPane: where to call setPreferredSize?    stackoverflow.com

I am using a JScrollPane and inside viewportView.doLayout, I am calling viewportView.setPreferredSize. That seems to be wrong though because the scroll bar of the JScrollPane is always updated according to the ...

3. What are side efects of setPreferredSize?    stackoverflow.com

I have window containing multiple panels. I don't have access to window code. (I can modify only panel’s code.) I removed few components from panel. Window has shrunk its size. But window ...

4. How to setPreferredSize of JPanel    coderanch.com

Hi All, I figured the swing folks could help me out with this one. I am having some confusion about how the setPrefferedSize() method works, or does it even work on JPanels? I want 2 panels, a north panel and a south panel, and I want each of them to share the JFrame equally. I have set their preffered size to ...

5. setPreferredSize()    coderanch.com

6. setPreferredSize trouble    coderanch.com

7. setPreferredSize()    coderanch.com

> Do you think that the problem exists in the customized code? I have no idea what/where the problem is, but if you customize a component so it's standard behaviour is different, that is generally the place to start. post a demo program, just a frame with panel and your customized textfield