wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 104
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: 19684
    
  20

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: 24183
    
  34

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: 19684
    
  20

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: 104
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...?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wings setbounds problem