Hallo!
Hab folgendes Problem:
In meinem "Hauptprogramm" steht:
	
		
	
Hab nun einen Abstractbutton:
	
	
	
	
	
		
	
Und hier brauch ich mein sunplot, wie kann ich das übergeben?
			
			Hab folgendes Problem:
In meinem "Hauptprogramm" steht:
		Code:
	
	  public ecgcombined() throws IOException {
                
        SUBPLOT_COUNT = ncol;
        final CombinedDomainXYPlot plot = new CombinedDomainXYPlot();
        datasets = new XYSeriesCollection[SUBPLOT_COUNT];
        
        XYSeries channel1 = new XYSeries("Channel 0");
        datasets[0] = new XYSeriesCollection (channel1);
        int m=0;
       for (float j=0; j<a; j+=c){
           //System.out.println ("M: " +m);
           String strRepresentation = signal1.get(m).toString();
           Double.parseDouble(strRepresentation);
           double sample3 = Double.parseDouble(strRepresentation);
           channel1.add(j, sample3);
           
           m=m+1;
       }
 
        for (int i = 0; i < SUBPLOT_COUNT; i++) {
  
            NumberAxis rangeAxis = new NumberAxis("Channel " + i + " [mV]");
            //rangeAxis.setAutoRangeIncludesZero(false);
            rangeAxis.setLowerBound(yMinMax[0]);
            rangeAxis.setUpperBound(yMinMax[1]);
            
            final XYPlot subplot = new XYPlot(
                    this.datasets[i], null, rangeAxis, new StandardXYItemRenderer()
            );
            subplot.setBackgroundPaint(Color.lightGray);
            subplot.setDomainGridlinePaint(Color.white);
            subplot.setRangeGridlinePaint(Color.white);
                  
            plot.add(subplot);
        }
              
        final JFreeChart chart = new JFreeChart("ECG-VIEWER", JFreeChart.DEFAULT_TITLE_FONT, plot, true);
        chart.setBorderPaint(Color.black);
        chart.setBorderVisible(true);
        chart.setBackgroundPaint(Color.white);
        
        plot.setBackgroundPaint(Color.lightGray);
        plot.setDomainGridlinePaint(Color.white);
        plot.setRangeGridlinePaint(Color.white);
        
        ValueAxis axis = plot.getDomainAxis();
        axis.setLabel("time [s]");
    }
	Hab nun einen Abstractbutton:
		Code:
	
	 ItemListener listener = new ItemListener(){
        public void itemStateChanged(ItemEvent e) {
            
            int state = e.getStateChange();
            System.out.println (state);
            if (state == ItemEvent.SELECTED) {
                System.out.println ("TRUE");    
            }
            else {
                System.out.println ("FALSE");
            }        
        }
    };