Results 1 to 4 of 4

Thread: [RESOLVED] Swing SetPosition With Code

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Resolved [RESOLVED] Swing SetPosition With Code

    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

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Swing SetPosition With Code

    Use the either the GropuLayout 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)
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: Swing SetPosition With Code

    I have Set Layout to null but cant seem To see All My Elements only 1
    How do you move
    with .move or SetLocation ?

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2007
    Posts
    530

    Re: Swing SetPosition With Code

    oK I Get it to Work with SetBound & set Layout to Null

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width