Package net.sf.myjaut.cmd

Examples of net.sf.myjaut.cmd.CommandMonitor


                    setForeground(new JProgressBar().getForeground());
                    super.paint(graphics);
//                    System.out.println(getForeground());
                }
            };
            CommandMonitor cm = new CommandMonitor() {
                public void signalProgress() {
                    try {
                        progress.setIndeterminate(mcWr.get().hasIndeterminateProgress());
                        if (!mcWr.get().hasIndeterminateProgress())
                            progress.setValue((int)(mcWr.get().getProgress() * 100));
//                        progress.setForeground(progress.getForeground());
                        progress.setStringPainted(true);
                        progress.setString(i18n.getValue((String) commandsToOngoingKeys.get(mcWr)));
                        mbl.repaint();
                    }
                    catch (NullPointerException exc) {
                        // Nothing has to be done: weak reference is cleared.
                    }
                }
            };
            commandMonitors.add(cm);
            cm.signalProgress();
            return progress;
        }
View Full Code Here

TOP

Related Classes of net.sf.myjaut.cmd.CommandMonitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.