I have textArea inside panel. When I add a line border to panel, it is coming perfectly around textarea. But when I add titled border to panel some of the text in textarea is missing from the visible area. I think there is some inset issue here. Can someone please help in setting the insets to titled border?
Posting my code of layoutcomponents:
setPreferredSize(new java.awt.Dimension(250, 40));
add(summaryTextField);
Border border = (BorderFactory.createLineBorder(Color.red));
setBorder(BorderFactory.createTitledBorder(border,"Details"));