JPanel components too close together

Hi!
I have a JPanel with three components (JLabels) aligned vertically....but there are so close together...how can I put a space (like another line) between them?
Thank you very much...
Gen

I don't even know how your code works. Normally you assign a LayoutManager to the panel first and then you add the components to the panel.
leftPanel.setLayout( new BoxLayout( leftPanel, BoxLayout.Y_AXIS ) );
leftPanel.add(typeLabel);
leftPanel.add(colorLabel);
leftPanel.add(sizeLabel);If you want additional spacing then you just add use:
leftPanel.add( Box.createVerticalStrut(10) ); Its even easier to use the Box class:
Box box = Box.createVerticalBox();
box.add( ??? );
box.add( Box.createVerticalStrut(10) );
box.add( ??? );

Similar Messages

  • DVI ports too close together

    HI, I tried to connect a second display to my Mac Pro (early 2008) last night and it seems that the DVI ports are too close together and I am unable to fit a second DVI cable in the open port. It's very odd, the 2 ports are shifted to the right and not centered.
    I have the NVIDIA GeForce 8800 GT upgrade but everything else is untouched. Any thoughts?
    I already see myself giving my machine to be "repaired or replaced" by Apple but I really would rather not of course. . .
    Thanks,
    Gary

    Tim - Thanks for the suggestion, it's the answer to the problem. It's not who you know it's what you know.
    Thanks,
    Gary

  • Buttons Too Close Together

    Hello there,
    I have read a lot on this board and can not seem to find an answer to my specific problem. Any help would be really great.
    I've got a still image taken from a camera that will be my menu background. We shot custom buttons as they needed to be in a specific location. The buttons are in the shape of an octagon, a lightning bolt, a circle, and a dog bone. I have tried creating an layered menu, however we need sound on the menu, and it doesn't seem as if dsp supports that. I then tried using an overlay, which would work great if we didn't have this problem: the buttons are very close to eachother and the four sided button that dsp will let me create would have to either cover one enitre button and a little bit of another, or not an entire button. I hope this makes sense.
    When the buttons are highlighted they are outlined in the shapes mentioned above. If there is a totally different way to do this, I'd be glad to hear it.
    Okay. Thank you so much for any help!
    Jacob
    MacBook Pro   Mac OS X (10.4.6)  

    Jacob,
    As far as I know, you are going to be limited by the DVD format. You can only make Rectangular buttons for a DVD. You can use your layers and graphics to make it appear like the buttons are various shapes, but ultimately you have to have it be a rectangle.
    Is there anyway you can move the buttons farther apart? Otherwise, consider making the roll-over (the button) only affect half the graphic, and so be smaller. For example, have only half the dog and bone change color so you can have both buttons only on your images but not interfering.
    Hope that helps!
    ~Luke

  • Markers too close together?!?

    i am burning a dvd where i only have one track and one video. when i go to burn it won't allow me telling me that my markers must be further apart. i only have two markers. one at the front and one at the end of about a 2 min video. when i move the end marker (chapter 2) to the middle of the movie it is fine, but when it is at the end of the video and it has an end jump back to the menu - it will not work. any thoughts? it probably is an easy fix - i just can't figure it out.
    thanks
    mrC

    You need to move that marker to the left a little. Its a DVD spec thing. Think of it as the end of the video being a marker too - which in DVD terms, it is. Move it one more notch over and try again

  • Creating spaces in PDF form- text is too close together

    Thank you in advance for all of your tips.
    I am a novice to Adobe PDF form creator and I need some assistance. I am creating the forms and I have all my boxes set, but the issue is that I can not find where to space the text boxes from the top line to the bottom. (As we would do with the enter/return key) I have the full letter page to fill but when I print the form it's on a 1/4 of a page and I need all the text to fill the whole page. I don't necessary want to enlarge the boxes to fill the space.
    Where can I create extra spacing between each top and bottom lines?
    Michelle

    Only the creator of that form can do that.

  • Dual Cinema displays, connectors too close

    Oh so I have a dual display card and 2 20in cinema displays. The connectors on the video card are too close together to accommodate the fat plugs on the 2 cinema displays. I had to other branded displays and the connectors fit nicely. Is there an extension to fit on these to bring them away from the computer without having to swap out the card?

    Your Mac Pro should have come with a short DVI(M) to DVI(F) extension cable with small connectors. Use it for one of the displays.

  • My gradient points are close together... how do you tab to the next one?

    Anybody know how to do this? It's a royal pain to spend time trying to click the pixel-wide edge of a gradient marker when they are close together.
    Sometimes selecting them in the Canvas helps with the gradient tool, but even then they're sometimes too close together. Any shortcuts?

    I also need to know how to select gradient multiple points at a time (so I can slide two adjacent points without having to fiddle with/fix their relative separation)

  • Text field: First character too close to the margin

    Hi there,
    I created a form with entry fields. When the user fills in the fields, the first charcater is always too close to the left margin - so that for example it is difficult to distinguish a "3" from an "8" (see attachment).
    How can I change that?
    Thanks a lot
    HeikeK

    That's it, thanks a lot! I'd never found that on my own. I thought it was some property of the field, never thought of the paragraph format.
    Thanks again.
    Heike

  • Text too close to page number in TOC

    Most of the time I can take care of unattractive line breaks in the TOC by putting in non-breaking spaces in a paragraph.
    However, I sometimes have a situation where the text of a TOC entry is too close to the page number on the right. The text is so close to the page number that in some cases no leader dots show, or only one or two leader dots show.
    The entry and its page number fit on a single line, so putting in non-breaking spaces won't solve the problem. I could put in a soft return (Shift-Enter) in the TOC entry to force a line break, but it isn't efficient because I have to put in the soft return manually each time the TOC is updated.
    If anyone has a tip on how to handle this problem efficiently, I'd love to know about it.

    Van
    That is absolutely brilliant. It also seems to prevent multi-line TOC entries from encroaching on the page number area in general.
    For ages I thought the only way around this ugly problem would be to wait 200 years for Adobe to give us four different indent options (first line left, left, right, and last line right) instead of the three that we currently have. (Last line right doesn't exist.)
    I'll just add one more suggestion that might make your line breaks and page number positions in the TOC 100% automatic instead of merely 98%.
    (It doesn't sound like much of an improvement, but if you've ever had to manually adjust the TOCs for 50 manuals every time you regenerated them, then you'll know where I'm coming from.)
    If you have any TOC paragraph specifications that use more than one tab, for handling section or chapter numbers at the front of the paragraph for example, then you'll notice that if a TOC entry wraps to two or more lines then the page number will no longer be printed at its intended tab stop, but will use one of the earlier tab stops instead (because in the new line there are no longer any previous tab characters to fill the earlier tab stops).
    The cure for this is to go to the TOC specification flow on the Reference pages, and in the problematic paragraph format add an extra tab character in front of the <$pagenum> building block.Then...
    If the TOC entry only covers one line, the extra tab character will be ignored.
    If the TOC entry covers two or more lines, the extra tab character will be used to fill up the previous stop so the page number settles at its intended tab stop.
    If you have TOC specifications that rely on more than two tab positions, just add more tab characters in front of the <$pagenum> building block (and regenerate) until the page number (in multi-line entries) lands at the correct tab stop.
    Thank goodness FM uses absolute tabs and not relative ones.

  • Proximity sensor reacting too close causing droppe...

    I have two Nokia Lumia 800 phones and they react too close with proximity sensor causing screen to become active so when I am outdoors in brighter light calls are auto-dropped when my cheek touches the end call button on the screen. I have compared my two Nokias in Diagnostics and they react at exact same distance (around 3 cm) and I have also compared them side-by-side to another LG E900 Windows Phone in their diagnostics where it reacts 2 cm further away (around 5 cm). On the LG calls are never dropped by mistake. Would it be possible for you to change this distance in upcoming firmwares so calls are not dropped as easily?
    If I am indoors in darker light or at night it is not common to see it, but during summer time and during more light it is more common I have noticed.
    Workaround I have currently is to disable the screen auto on/off feature by pressing power button once after answering or calling. if you do this manually it is disabling proximity sensor screen on/off until you press the power button again.

    I find it completely ludicrous that Apple can interject on this thread and say it's received too many posts and has to be shut down and a "new" thread started. Really now? Seriously? Couldn't they also simply pop in and post 'hi guys, we hear you and are working on it' ...or something to that effect? That's my main complaint really is the deafening silence. What they're basically telling us is to complain all we want, if we don't like the phone then return it for a refund ...that is if you still have your original defective phone, for all you that already swapped phones, you're beat and are stuck with our mistake for the next 2 years when you'll be upgrade eligible again. ...WOW, thanks for the statement without technically releasing one. ...I think we're all left in the dark because Apple really doesn't know what is going on with the sensor, they can't and or won't release a statement without getting the facts straight. ...but we all know one fact is straight...the sensor is dysfunctional and that alone deserves an acknowledgement. How are we to have faith in Apple to fix the issue when we're left to believe they don't think there is one.
    ...btw update on "my fix" ...deleting all your photos and putting the phone in your arm pit and then under your pillow is only a temporary solution, for mine sensor is on the fritz again. ...shaking my head, if only this were
    funny.

  • In a Quiz the Correct Answer Buttons are too close to the answer letter. How to give more space?

    When creating a quiz and previewing, the Buttons to select the correct answer are too close to the letter for the answer. How do I add space between them. Suggestions?

    I think what you mean is that the quiz question's Failure action doesn't trigger until the final attempt and that would never happen if attempts is set to Infinite.  So if you were only incrementing the variable when the quiz question registered final failure then you'd only get one crack at incrementing the variable. yes.  My bad.
    However, if you are using Multiple Choice questions, you can also trigger actions using the Advanced Answer Option.  This will trigger an action when a particular answer is selected.  So if you set this for each incorrect answer, you could increment the variable each time they select the wrong answer.
    You can also use this same Advanced Answer action to execute a conditional action that first checks the value of the variable and then shows the rollover caption or increments the variable as needed.
    Say you create a variable called WrongAnswer and initialise it with a value of 0.  Then you create a Conditional Action called CheckWrongAnswer that looks like this:
    If WrongAnswer is equal to 1 assign Wrong Answer with 2, (then on the next line) Show RolloverCaption, ELSE assign Wrong Answer with 1.
    This shows the rollover caption after the second attempt resulting in an incorrect answer.

  • Printer prints too close to top edge...

    Can not align my labels from either of our 2 pcs so it is printer not settings.....?..normally prints too close to top egde losing first line of text from work doc which is a pain.  Was fine, suddenly decided not to play fair.  Any ideas?  My christmas cards need their labels......

    What printer are you using?
    What OS are you using?
    How is the printer connected to the computer?
    What program are you trying to print from?
    Does it do the same thing from other programs?
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • The office building I work in is too close to my favorite Starbucks and Passbook is constantly offering to load the Starbucks card every time I turn on my iPhone.  What can I do?

    The office building I work in is too close to my favorite Starbucks and Passbook is constantly offering to load the Starbucks card every time I turn on my iPhone.  What can I do?  I'm sure the phone is using Location Services way more than I want it to.

    in OS 6 Go to
    Settings>Privacy>Location Services scroll to Starbucks and slide to off.

  • Text in Email messages to close together

    When I read my Email in the right hand pane,the words are so close together that they are jumbled together and on top of one another. What is causing this ?

    I'm not quite sure what you mean, could you enclose a picture? (to screenshot on an iPad press the home and lock buttons simultaneously).
    Have you tried closing the app and trying again? You can do this by double clicking the home button (or, if gestures are enabled in settings, swipe upwards with 4 fingers) and holding down on the mail icon until a red dash appears, then press the dash and press the home button again. Then reopen the app.

  • Remove distortion from mic too close to mouth?

    Are there any recommended settings for removing the fuzziness from a tape recording (talking narration), where the person is has the mic too close or is too loud for it or both? The voice is pretty clear but the high pass filters aren't quite removing the fuzz from the maxing out of the levels.
    Thanks
    Jeff

    That's one of the hardest noises to eliminate, you'll have to try setting a noise print by isolating the noise alone in a segment and then reducing noise. The caveat is if the actual vocal pattern tails into distortion and it's not separate anything you do will generally just leave it sounding worse. But try reducing noise.

Maybe you are looking for