public static void main(String[] args) { JFrame frame = new JFrame(); frame.setSize(400, 300); frame.setLocation(400, 300); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); JPanel content = new JPanel(); DendrogramPanel dp = new DendrogramPanel(); frame.setContentPane(content); content.setBackground(Color.red); content.setLayout(new BorderLayout()); content.add(dp, BorderLayout.CENTER); dp.setBackground(Color.WHITE); dp.setLineColor(Color.BLACK); dp.setScaleValueDecimals(0); dp.setScaleValueInterval(1); dp.setShowDistances(false); Cluster cluster = createSampleCluster(); dp.setModel(cluster); frame.setVisible(true); }
public static void main(String[] args) { JFrame frame = new JFrame(); frame.setSize(400, 300); frame.setLocation(400, 300); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); JPanel content = new JPanel(); DendrogramPanel dp = new DendrogramPanel(); frame.setContentPane(content); content.setBackground(Color.red); content.setLayout(new BorderLayout()); content.add(dp, BorderLayout.CENTER); dp.setBackground(Color.WHITE); dp.setLineColor(Color.BLACK); dp.setScaleValueDecimals(0); dp.setScaleValueInterval(1); dp.setShowDistances(false); Cluster cluster = createSampleCluster(); dp.setModel(cluster); frame.setVisible(true); }
public static void main(String[] args) { JFrame frame = new JFrame(); frame.setSize(400, 300); frame.setLocation(400, 300); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); JPanel content = new JPanel(); DendrogramPanel dp = new DendrogramPanel(); frame.setContentPane(content); content.setBackground(Color.red); content.setLayout(new BorderLayout()); content.add(dp, BorderLayout.CENTER); dp.setBackground(Color.WHITE); dp.setLineColor(Color.BLACK); dp.setScaleValueDecimals(0); dp.setScaleValueInterval(1); dp.setShowDistances(false); Cluster cluster = createSampleCluster(); dp.setModel(cluster); frame.setVisible(true); }