Results 1 to 2 of 2
- 08-22-2011, 12:17 AM #1
Set distance from border to component
Hello. Is there any way to set a vertical and horizontal distance between the component or container and its border? I know that MatteBorder can do it, but I need to do it with other borders. Is there any way to set that distance, I've looking for it and I didn't find it.
You can use an EmptyBorder to supply a margin around any container. Also you can nest borders via a CompoundBorder. Please check out the Border Tutorial.
- By silverglade in forum New To JavaReplies: 16Last Post: 05-14-2011, 08:23 PM
- By basketball8533 in forum New To JavaReplies: 7Last Post: 01-27-2011, 07:04 AM
- By sirdonclemo in forum New To JavaReplies: 2Last Post: 09-05-2010, 03:21 AM
- By nidhirastogi in forum Java 2DReplies: 5Last Post: 08-18-2008, 10:24 PM