Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in layout  RSS feed

 
swapnel surade
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using Grid layout in that i have used a panel to show image on top side .
after that there are few buttons in the screen which are below the image.
all buttons are properly managed but the image shown in the panel is getting cropped.
I'm not getting what is happening please help me out.

thanks


 
Campbell Ritchie
Sheriff
Posts: 53769
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember that GridLayout always gives your components the same size.
 
santhosh varala kumar
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Remember that GridLayout always gives your components the same size.


-->Basically you can opt for different layout than gridlayout.
The layout you can be:
a)Using Gridbaglayout
b)Using Combination of BorderLayout and FlowLayout: Put all buttons in a panel using flowlayout and then put in another panel with image using borderlayout
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!