private void showMonomeDisplay() { if (monomeDisplayFrame == null || monomeDisplayFrame.isClosed()) { MonomeConfiguration monomeConfiguration = MonomeConfigurationFactory.getMonomeConfiguration(index); monomeDisplayFrame = new MonomeDisplayFrame(monomeConfiguration.sizeX, monomeConfiguration.sizeY); MainGUI.getDesktopPane().add(monomeDisplayFrame); try { monomeDisplayFrame.setSelected(true); } catch (PropertyVetoException e) { e.printStackTrace(); } } else { try { monomeDisplayFrame.setSelected(true); } catch (PropertyVetoException e) { e.printStackTrace(); } } }
private void showMonomeSetup() { if (monomeSetupFrame != null && monomeSetupFrame.isShowing()) { try { monomeSetupFrame.setSelected(true); } catch (PropertyVetoException e) { e.printStackTrace(); } return; } monomeSetupFrame = new MonomeSetupFrame(MonomeConfigurationFactory.getMonomeConfiguration(index)); monomeSetupFrame.setSize(new Dimension(148, 207)); monomeSetupFrame.setVisible(true); Main.main.mainFrame.add(monomeSetupFrame); try { monomeSetupFrame.setSelected(true); } catch (PropertyVetoException e) { e.printStackTrace(); } }
private void showPageChangeConfiguration() { if (pccFrame != null && pccFrame.isShowing()) { try { pccFrame.setSelected(true); } catch (PropertyVetoException e) { e.printStackTrace(); } return; } pccFrame = new PageChangeConfigurationFrame(MonomeConfigurationFactory.getMonomeConfiguration(index)); pccFrame.setSize(new Dimension(212, 370)); pccFrame.setVisible(true); Main.main.mainFrame.add(pccFrame); try { pccFrame.setSelected(true); } catch (PropertyVetoException e) { e.printStackTrace(); } }
public void actionToggleMidiOutput(String deviceName) { MonomeConfiguration monomeConfig = MonomeConfigurationFactory.getMonomeConfiguration(index); monomeConfig.toggleMidiOutDevice(deviceName); }
public void actionTogglePageChangeMidiInput(String deviceName) { MonomeConfiguration monomeConfig = MonomeConfigurationFactory.getMonomeConfiguration(index); monomeConfig.togglePageChangeMidiInDevice(deviceName); }