java - Position of elements in Panel GWT -
i want know if it's possible position different elements in panel horizontalpanel
example.
in java code, have horizontalpanel
2 elements, 1 image , 1 label.
i want image in left of panel , label in middle.
for example:
horizontalpanel pheader = new horizontalpanel(); image moviedata = new image(); moviedata.seturl("http://i.myegy.to/images/1c58b25ce86e.original.png"); label titlehead = new label ("movies"); pheader.add(moviedata); pheader.add(titlehead);
how can place these both elements?
thank help.
mickey74
you can use setcellhorizontalalignment:
pheader.setcellhorizontalalignment(moviedata, hashorizontalalignment.align_left); pheader.setcellhorizontalalignment(titlehead, hashorizontalalignment.align_middle);