Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Layout problem

 
peter tong
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to make the two image side by side and the label under the two image, I try to use the method mentioned in
Moving to Standards Mode
which said

use FlowPanel, and to use the float: left; CSS property on its children

to simulate the effect of HorizontalPanel, but fail, the label is next to the image.
Also, the image could not auto resize according to my setSize method on image widget.

so many white space is left,
how to solve these two problems?

the relevant code is attached as follows:




problem1.JPG
[Thumbnail for problem1.JPG]
Problem Image Layout
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic