PDA

View Full Version : page position



asedmaloch
8 Sep 2009, 4:50 AM
hi ,
i dont know why when i use page position it doesn't effect , it just added to the begining of the panel .
what shall i do ?
this my code :

ContentPanel mainp = new ContentPanel();




Button btn = new Button("ok");

btn.setPixelSize(150, 30);
btn.setPagePosition(700, 500);



mainp.add(btn1);
mainp.setPixelSize(800, 800);




RootPanel.get().add(mainp);

sven
8 Sep 2009, 4:52 AM
There are two ways of positining something. relative and absolute. Did you set one of these two to your button?

asedmaloch
8 Sep 2009, 9:45 AM
:D how should i do that ?