blank component

Posted on 2008-11-08
Last Modified: 2013-11-23
I have a JToolbar with 10 buttons using the default layout manager.
I want to put some space in between the first 5 and last 5 buttons.
What is the best component to use for this?
an invisible button?
Question by:allelopath
    LVL 86

    Accepted Solution

    You could do that, but a BoxLayout would be less kludgy
    LVL 6

    Assisted Solution

    The best way is the separator that JToolbar provides, use it like this:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Title # Comments Views Activity
    MaxSpan challenge 9 49
    linearIn  challenge 23 54
    nested class vs inner class 5 36
    dividesSelf challange 15 57
    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now