Frame « Layout « Java Swing Q&A





1. how to include more than two panel in a frame?    stackoverflow.com

Sir, We are working on a project.Here we encountered with a problem ie we are unable to include more than two panels on the same frame .What we want is one ...

2. Allocating space on a Frame for a Jpanel    stackoverflow.com

I have a JFrame where I need to add 2 different JPanels of different sizes. I'm using BorderLayout.I have the Frame set up so that there is enough space for the ...

3. Making mainpanel shrink and expand along with the frame in netbeans    stackoverflow.com

I am writing a java desktop application in netbeans. How can i make the mainpanel shrink and expand when the Frame is resized?

4. Panel not Adding to the main Frame    stackoverflow.com

I have a main frame and 3 panels. I want to add those 3 panels to the main frame. However, only 2 of them are getting added. The third one is ...

5. how to Positioning a Frame??    coderanch.com

hi! friends i want to position my frame on the screen at a specific position. what is the method of positioning a frame at a specific position. i also want to fix the size of the frame so that noone will be able to resize the frame . neither minimize nor maximize. reply with a hint!! Ajay Singhal ------------------

6. Layouts, Panel & Frame    coderanch.com

Hi Kajol, Yes you are right. 1) You have added a Panel P1 to your applet. 2) Layout of P1 is set to Card Layout. 3) Now You need another panel P2 . 4) set the layout of P2 whatever you want. 5) add your components (Buttons etc)to P2. 6) add P2 to P1. and everything is done. hope this helps. ...

7. positioning frame...    coderanch.com

hi all, i have a main frame say "a" and i am trying to show another frame say "b" from "a" by calling objectofframe"b".show()..now the frame "b" shows allright but my problem is that i want this frame "b" to be displayed at the center of frame "a",is there any way to go about it?ranchers plz advice.. regards karan

8. cannot manage layout in the frame    coderanch.com





11. Finding position of a component on a panel and NOT with respect to Frame    coderanch.com

Hey there, Consider a scenario. I have a frame on which I have a Panel. say I place a label in the panel, how do I know what is the position of the label with respect to the panel and not frame. Usually label.getX() will give me its position on the frame and not panel. How do I get around this ...