Code example for TitledBorder

0
 
    private JComponent c() {
        PlayerListComponent playerlistcomponent = new PlayerListComponent(this.b);
        JScrollPane jscrollpane = new JScrollPane(playerlistcomponent, 22, 30);
 
        jscrollpane.setBorder(new TitledBorder(new EtchedBorder(), "Players"));
        return jscrollpane;
    } 
 
    private JComponent d() {
        JPanel jpanel = new JPanel(new BorderLayout());
        // CanaryMod 
        JTextArea jtextarea = TextAreaLogHandler.getLogHandler().getJTextArea();
 
        // Removed Old code to add LogHandler to Logger 
        // 
        JScrollPane jscrollpane = new JScrollPane(jtextarea, 22, 30);
 
        jtextarea.setEditable(false);
        JTextField jtextfield = new JTextField();