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 2 of 2

Thread: Margins between buttons added to a box instance

  1. #1
    Junior Member
    Join Date
    Sep 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Margins between buttons added to a box instance

    How could I put some margins between buttons added to a box instance.
    This box instance´s BoxLayout is Y_AXIS.
    I`d also like to have the buttons aligned center.

    How could I do that?


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,307
    Thanks
    181
    Thanked 824 Times in 767 Posts
    Blog Entries
    5

    Default Re: Margins between buttons added to a box instance

    How could I put some margins between buttons added to a box instance.
    Use an empty border:
    How to Use Borders (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)

Similar Threads

  1. Strings not being added to arraylist
    By noel222 in forum What's Wrong With My Code?
    Replies: 30
    Last Post: February 10th, 2012, 04:53 PM
  2. Image is not added when converting eml into htm
    By Vjay in forum What's Wrong With My Code?
    Replies: 3
    Last Post: July 4th, 2011, 06:24 AM
  3. Image is not added when converting eml into htm
    By Vjay in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: July 1st, 2011, 09:23 AM
  4. Set page margins when printing in java
    By simplegoogly in forum Java Theory & Questions
    Replies: 1
    Last Post: April 13th, 2011, 05:54 AM

Tags for this Thread