• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wings setbounds problem

 
Satyajit Bhadange
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

i am usings wingS. when i am adding button i want to set its position. like we do using setBounds metohd in swings...but no such methos is provided by them.

Can i get help on this .
 
Rob Spoor
Sheriff
Pie
Posts: 20611
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Satyajit Bhadange wrote:i am usings wingS

I inkth ouy eanm Swing.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like he really does mean wingS, which is yet another GWT kind of thing.

Satyajit, using setBounds() in Swing is wrong, wrong, wrong -- generally only the LayoutManager should call that method. Calling the equivalent on a web page is not only wrong, it's often impossible, which is why this sort of framework doesn't provide such a method. Use the layout managers, the way you're supposed to -- both in Swing and wingS.
 
Rob Spoor
Sheriff
Pie
Posts: 20611
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ernest Friedman-Hill wrote:Looks like he really does mean wingS, which is yet another GWT kind of thing.

In that case, Satyajit, I apologize for my attempt to be funny.

(Still, the link I added is still valid because you mentioned "swings".)
 
Satyajit Bhadange
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Everyone..

i am not that good in swing .
i want to arrange components wherever i want .In such case which layout i must choose and which methods can be used to place those components in right place;

And one more doubt....how good it is to write web app in wingS ...coz there are also many other frameworks available...?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic