Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: horizontal dividing line in swing



On Friday, Aug 29, 2003, at 07:06 Europe/London, -K wrote:

Hi- I am trying to add a horizontal dividing line in my JPanel. To act as a visual divider between visually logical components in the GUI.

I have opted to create a JPanel, set its background color to a SystemColor and then including this new horizontal dividing line panel inside of the bigger panel. I am using SpringLayout as my layout manager. However the visual effect is not what I was expecting. Instead of a horizontal dividing line I get a grey square 5 x 5 px large. The grey square appears in the correct location starting location for the horizontal dividing line, but that is all.


Have you tried using a JSeparator to achieve this? You can provide it with a suitable border/inset to indent it as appropriate.

--nick
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.

References: 
 >horizontal dividing line in swing (From: -K <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.