< prev index next >

src/com/sun/javatest/agent/AgentFrame.java

Print this page
rev 152 : 7902253: Remove unnecessary array creation for varargs parameters
7902245: Correct Agent.productVersion
Reviewed-by: jjg

*** 257,272 **** if (start) sp.start(); try { ! Method invokeLater = EventQueue.class.getMethod("invokeLater", new Class<?>[] { Runnable.class }); ! invokeLater.invoke(null, new Object[] { new Runnable() { public void run() { sf.showCentered(); } ! } }); } catch (NoSuchMethodException e) { // must be JDK 1.1 sf.showCentered(); } --- 257,272 ---- if (start) sp.start(); try { ! Method invokeLater = EventQueue.class.getMethod("invokeLater", Runnable.class); ! invokeLater.invoke(null, new Runnable() { public void run() { sf.showCentered(); } ! }); } catch (NoSuchMethodException e) { // must be JDK 1.1 sf.showCentered(); }
*** 308,318 **** /** * Create a AgentFrame. * @param modeOptions An array of option panels for different connection modes. */ public AgentFrame(ModeOptions[] modeOptions) { ! super(Agent.productName); ExitCount.inc(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { setVisible(false); --- 308,318 ---- /** * Create a AgentFrame. * @param modeOptions An array of option panels for different connection modes. */ public AgentFrame(ModeOptions[] modeOptions) { ! super(Agent.PRODUCT_NAME); ExitCount.inc(); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { setVisible(false);
< prev index next >