Hi
I want to set single title border to group of textfields how can i do this in java / swing.
i have tried below code but text fields are compressing inside panel
// Create panel and add some components to it.
JPanel pnl = new JPanel(new FlowLayout(FlowLayout.LEFT));
pnl.add(new JLabel("Name"));
pnl.add(new JTextField());
// Add titled border to panel, which will therefore surround
// all child components placed on the panel.
pnl.setBorder(BorderFactory.createTitledBorder("It's Friday!"));