//import org.lirc.*; //import org.lirc.util.*; import javax.swing.SwingUtilities; import java.io.*; public class IRController { private static final String LIRC_CONFIG = "viewer.lirc"; private viewer viewer; // private SimpleLIRCClient lirc = null; public IRController (viewer viewer) throws IOException, FileNotFoundException /*, LIRCException */ { this.viewer = viewer; // lirc = new SimpleLIRCClient("viewer", viewer.file(LIRC_CONFIG)); // lirc.addIRActionListener(new IRListener()); } /* private class IRListener implements IRActionListener { public void action(final String comm) { SwingUtilities.invokeLater(new Runnable() { public void run() { viewer.doCommand(comm); } }); } } */ }