/** * @param args the command line arguments */ public static void main(String args[]) { PVManager.setDefaultNotificationExecutor(swingEDT()); SetupUtil.defaultCASetupForSwing(); java.awt.EventQueue.invokeLater(new Runnable() { public void run() { new MockDynamicTablePVFrame().setVisible(true); } }); }
public static void defaultCASetupForSwing() { PVManager.setDefaultNotificationExecutor(Executors.swingEDT()); defaultCASetup(); } }
/** Creates new form MockPVFrame */ public MockTablePVFrame2() { PVManager.setDefaultNotificationExecutor(swingEDT()); PVManager.setDefaultDataSource(SimulationDataSource.simulatedData()); initComponents(); }
/** Creates new form MockPVFrame */ public ReportRateFrame() { PVManager.setDefaultNotificationExecutor(swingEDT()); PVManager.setDefaultDataSource(SimulationDataSource.simulatedData()); initComponents(); }
/** Creates new form MockPVFrame */ public MockTablePVFrame() { PVManager.setDefaultNotificationExecutor(swingEDT()); PVManager.setDefaultDataSource(SimulationDataSource.simulatedData()); initComponents(); }
/** Creates new form MockPVFrame */ public MockSyncArrayTableFrame() { PVManager.setDefaultNotificationExecutor(swingEDT()); PVManager.setDefaultDataSource(SimulationDataSource.simulatedData()); initComponents(); }
public void datasourcesInSwing() { // When creating UIs in swing, you will need to route notification directly // on the Event Dispatch Thread. // You can do this on a PV by PV basis, or you can change the default if // you control the whole application. // Import from here // import static org.diirt.util.concurrent.Executors.*; // Route notification for this pv on the Swing EDT PVReader<?> pvReader = PVManager.read(channel("test")).notifyOn(swingEDT()).maxRate(ofMillis(100)); // Or you can change the default PVManager.setDefaultNotificationExecutor(swingEDT()); }
public void datasourcesInJavaFX() { // When creating UIs in JavaFX, you will need to route notification directly // on the Application Thread. // You can do this on a PV by PV basis, or you can change the default if // you control the whole application. // Import from here // import static org.diirt.javafx.util.Executors.*; // Route notification for this pv on the Swing EDT PVReader<?> pvReader = PVManager.read(channel("test")).notifyOn(javaFXAT()).maxRate(ofMillis(100)); // Or you can change the default PVManager.setDefaultNotificationExecutor(javaFXAT()); }