Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Gui java (Beginner)

  1. #1
    Junior Member
    Join Date
    Aug 2020
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Gui java (Beginner)

     

    now all the txtbox, button are in one line, can i know how to make it each in one line?
    Last edited by Varma34; August 29th, 2020 at 02:28 PM.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Gui java (Beginner)

    The positioning of components is controlled by a layout manager. Here is a link to the tutorial for more information:
    https://docs.oracle.com/javase/tutor...out/index.html
    One of the grid layout managers may do what you want.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Aug 2020
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Gui java (Beginner)

    Quote Originally Posted by Norm View Post
    The positioning of components is controlled by a layout manager. Here is a link to the tutorial for more information:
    https://docs.oracle.com/javase/tutor...out/index.html
    One of the grid layout managers may do what you want.
    i think box layout will do what i want but i got no idea even after reading about it.
    Thank you for trying to help.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Gui java (Beginner)

    There are sample codes on that tutorial site. Download one of them and try making changes to it to see what happens.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. New Beginner Java Tutorial! How to use the Random Object In Java
    By OrbtialStudios in forum Java Programming Tutorials
    Replies: 0
    Last Post: January 19th, 2018, 10:33 PM
  2. Replies: 2
    Last Post: January 18th, 2013, 11:12 AM
  3. Replies: 1
    Last Post: January 6th, 2013, 06:32 AM
  4. Need Help - I am not even a beginner in Java :(
    By rrypo123 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: December 13th, 2012, 10:34 PM
  5. Java Beginner
    By kney in forum Java Theory & Questions
    Replies: 10
    Last Post: October 18th, 2011, 06:38 AM

Tags for this Thread