my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes Wings setbounds problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Wings setbounds problem" Watch "Wings setbounds problem" New topic
Author

Wings setbounds problem

Satyajit Bhadange
Ranch Hand

Joined: May 13, 2010
Posts: 103
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 .


Thanks
user101
Problems And Solutions - Algorithms
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

Satyajit Bhadange wrote:i am usings wingS

I inkth ouy eanm Swing.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

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.


[Jess in Action][AskingGoodQuestions]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

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

Joined: May 13, 2010
Posts: 103
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...?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Wings setbounds problem
 
Similar Threads
What were you eating when you cracked your tooth?
Moving From AS400/ISeries to Java Technology
Do you always need setVisible?
WA #1.....word association
why i am not getting the proper format of the following code