PDA

Click to See Complete Forum and Search --> : [RESOLVED] Swing SetPosition With Code


killer7k
Jan 20th, 2008, 10:43 AM
Hi ,

I was Using Awt for a time , I was Using a Class That keep me Moving Composant Manually With .move, i can place it manually in Frame
But now i Want to use Swing but problem seem that This class dont work with it
i cant get element dsplayed in JFrame
I have add a FlowLayout but I get Element In The same line

What i want is moving element manually like with awt
with .move or setLocation ..

Thanks

ComputerJy
Jan 20th, 2008, 04:05 PM
Use the either the GropuLayout (http://java.sun.com/j2se/1.6/docs/api/javax/swing/GroupLayout.html) or set the Layout to null so you can place you're controls anywhere. But this would cause some cross-platform compatibility issues (I mean using null)

killer7k
Jan 20th, 2008, 04:26 PM
I have Set Layout to null but cant seem To see All My Elements only 1
How do you move
with .move or SetLocation ?

killer7k
Jan 20th, 2008, 05:00 PM
oK I Get it to Work with SetBound & set Layout to Null