JDev

cssJune 5, 2007 8:04 pm

Page elements can be hidden from view by setting either visibility:hidden or display:none.

If visibility:hidden is used, the item will still occupy space on the page, whereas in case of display:none, it won’t.

Code, java 12:49 pm

Add an empty border to JTextArea: 

    myTextArea.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));