// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@

package example;

import java.awt.*;
import javax.swing.*;

public final class MainPanel extends JPanel {
  private MainPanel() {
    super(new GridLayout(1, 3));

    JTree tree0 = new JTree();
    tree0.putClientProperty("JTree.lineStyle", "Angled");

    JTree tree1 = new JTree();
    tree1.putClientProperty("JTree.lineStyle", "Horizontal");

    JTree tree2 = new JTree();
    tree2.putClientProperty("JTree.lineStyle", "None");

    add(makeTitledPanel("Angled(default)", new JScrollPane(tree0)));
    add(makeTitledPanel("Horizontal", new JScrollPane(tree1)));
    add(makeTitledPanel("None", new JScrollPane(tree2)));
    setPreferredSize(new Dimension(320, 240));
  }

  private static Component makeTitledPanel(String title, Component c) {
    JPanel p = new JPanel(new BorderLayout());
    p.setBorder(BorderFactory.createTitledBorder(title));
    p.add(c);
    return p;
  }

  public static void main(String[] args) {
    EventQueue.invokeLater(MainPanel::createAndShowGui);
  }

  private static void createAndShowGui() {
    JFrame frame = new JFrame("@title@");
    frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    frame.getContentPane().add(new MainPanel());
    frame.pack();
    frame.setLocationRelativeTo(null);
    frame.setVisible(true);
  }
}

@@ -238,16 +238,52 @@
 (1, 3));
+%0A    String key = %22JTree.lineStyle%22;
 %0A%0A    JT
@@ -335,33 +335,19 @@
 roperty(
-%22JTree.lineStyle%22
+key
 , %22Angle
@@ -411,33 +411,19 @@
 roperty(
-%22JTree.lineStyle%22
+key
 , %22Horiz
@@ -491,33 +491,19 @@
 roperty(
-%22JTree.lineStyle%22
+key
 , %22None%22

define a constant instead of duplicating this literal 'JTree.lineStyle' 3 times