Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Borders without using BorderLayout

Status
Not open for further replies.

drkestrel

MIS
Sep 25, 2000
439
GB
I noticed that whatever Layout manager I use in Swing or AWT, even when BorderLayout is used and unless I dump some empty JLabels at BorderLayout.SOUTH, BorderLayout.NORTH, BorderLayout.WEST and BorderLayout.EAST, the contents of the frame always tightly sit alongside the border of the frame with no gaps (even when set{H,V}gap is called with GridLayOut).

What can I do to create some 'borders' on a JFrame or Dialog without having empty borders alongside a BorderLayout JPanel??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top