Results 1 to 5 of 5

Thread: JFrame window

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    6

    Question JFrame window

    How do i place objects on the JFrame window by refering to the coordinates on the window itself, rather than using a bunch of panels and layout options?

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

    Re: JFrame window

    set the layout option to 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
    New Member
    Join Date
    Sep 2005
    Posts
    6

    Re: JFrame window

    Ok, but could you give me a little more information than that please? What do i do after that? Thanks for helping.

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

    Re: JFrame window

    This code creates a button in a no layout manager frame
    Code:
    getContentPane().setLayout(null);
    JButton jButton1=new JButton();
    jButton1.setBounds(new Rectangle(13, 27, 81, 31));
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    6

    Re: JFrame window

    AH ok, thank you very much.

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