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: JSeparator -- used to be "horizontal dividing line in swing"



-K wrote:

Hi - I tried this:

JSeparator divider = new JSeparator(SwingConstants.HORIZONTAL);

// LOTS OF CODE

SpringLayout.Constraints dividerCons = layout.getConstraints(divider);
dividerCons.setX(Spring.constant(5));
dividerCons.setY(Spring.sum( Spring.constant(5), setLAFMessageLabelCons.getConstraint(SpringLayout.SOUTH)));
But nothing happens or appears in the JPanel?

You should add a border to divider.

Jim

--
James P. McCusker
Senior Software Engineer
Technical Lead, Usability Engineering
TurboWorx, Inc.
email@hidden
www.turboworx.com
_______________________________________________
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: 
 >JSeparator -- used to be "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.