Exemple #1
0
  protected void initComponents() {
    super.initComponents();
    Line series = new Line(chart1.getChart());
    series.setVerticalAxis(VerticalAxis.BOTH);

    positionLabel = new JLabel("0%");
    positionSlider =
        new JSlider(JSlider.HORIZONTAL, 0, 100, (int) chart1.getAxes().getLeft().getZPosition());
    axisList = new JComboBox(new String[] {"Left", "Right"});
    axisList.setSelectedIndex(0);
  }