Results 1 to 7 of 7
  1. #1
    baig-sh is offline Member
    Join Date
    Nov 2011
    Posts
    35
    Rep Power
    0

    Default Suggest Layout Please.

    Here is my assignment's Snapshot i am confuse with Layout please suggest me Layouts.

    ThanksSuggest Layout Please.-ent3.jpg

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default Re: Suggest Layout Please.

    What have you tried? Keep in mind that you can nest layouts. Go through the layout tutorials and look for sections of your program that look like a particular layout, add them to a JPanel with that layout, then treat them as a single component and repeat the process.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Cosmos is offline Member
    Join Date
    Jul 2011
    Location
    New Delhi,India
    Posts
    56
    Rep Power
    0

    Default Re: Suggest Layout Please.

    you can use setBounds method to manually put components on the container.....

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: Suggest Layout Please.

    Quote Originally Posted by Cosmos View Post
    you can use setBounds method to manually put components on the container.....
    From Oracle's Tutorial at the start of the Doing Without a Layout Manager (Absolute Positioning) which describes the setBounds() approach:

    "Although it is possible to do without a layout manager, you should use a layout manager if at all possible. A layout manager makes it easier to adjust to look-and-feel-dependent component appearances, to different font sizes, to a container's changing size, and to different locales. Layout managers also can be reused easily by other containers, as well as other programs."

  5. #5
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default Re: Suggest Layout Please.

    Quote Originally Posted by Cosmos View Post
    you can use setBounds method to manually put components on the container.....
    As pbrockway2 already pointed out, this is pretty terrible advice. What happens when you resize your Container? What happens if you want to add or remove a single Component? What happens if you want to change the layout (from vertical to horizontal, for example)?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  6. #6
    baig-sh is offline Member
    Join Date
    Nov 2011
    Posts
    35
    Rep Power
    0

    Default Re: Suggest Layout Please.

    Thanks 2 all, with ur kind guideline i get the solution
    now i m working with a container + border layout and multiple JPanels with different layouts and satisfied from results.
    Thanks.

  7. #7
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default Re: Suggest Layout Please.

    Quote Originally Posted by baig-sh View Post
    Thanks 2 all, with ur kind guideline i get the solution
    now i m working with a container + border layout and multiple JPanels with different layouts and satisfied from results.
    Thanks.
    That's exactly the correct solution. Well done.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. please suggest me
    By ontonio in forum Java Applets
    Replies: 2
    Last Post: 07-31-2011, 04:57 PM
  2. can someone suggest me how to sort data..?
    By miu44 in forum New To Java
    Replies: 2
    Last Post: 02-17-2011, 02:50 AM
  3. Hello friends !! suggest me a project
    By Nishit in forum Advanced Java
    Replies: 7
    Last Post: 07-17-2008, 08:51 AM
  4. Please suggest me the correct approach!
    By rjuyal in forum Advanced Java
    Replies: 6
    Last Post: 05-05-2008, 03:54 PM
  5. Please suggest a database ?
    By Vinuraj in forum CLDC and MIDP
    Replies: 1
    Last Post: 01-14-2008, 09:48 AM

Posting Permissions

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