Skip to content

Commit

Permalink
WiP #419 - Properties Menu / InteractiveChart
Browse files Browse the repository at this point in the history
  • Loading branch information
eselmeister committed Oct 25, 2024
1 parent 8b4c3e6 commit e13d9bc
Showing 1 changed file with 41 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*******************************************************************************
* Copyright (c) 2024 SWTChart project.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Philip Wenig - menu demo extension
*******************************************************************************/
package org.eclipse.swtchart.extensions.examples.charts;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swtchart.extensions.charts.InteractiveChart;

public class InteractiveChartDemo {

public static void main(String args[]) {

Display display = new Display();
Shell shell = new Shell(display);
shell.setText("InteractiveChartDemo");
shell.setSize(500, 400);
shell.setLayout(new FillLayout());
//
new InteractiveChart(shell, SWT.NONE);
shell.open();
//
while(!shell.isDisposed()) {
if(!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose();
}
}

0 comments on commit e13d9bc

Please sign in to comment.