It's not, unfortunately! Sorry. I'll be more specific next time (if it ever happens again!).
>From: "Valentin Kipiatkov" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: Re: [Eap-list] Erroneous "Never used" highlights when using anonymous classes >Date: Wed, 3 Apr 2002 14:29:08 +0400 >charset="iso-8859-1" >Reply-To: [EMAIL PROTECTED] > >I cannot reproduce it. Is it reproducable for you? > >Valentin Kipiatkov >JetBrains, Inc / IntelliJ Software >http://www.intellij.com >"Develop with pleasure!" > >----- Original Message ----- >From: "Graham Lea" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Wednesday, April 03, 2002 4:46 AM >Subject: [Eap-list] Erroneous "Never used" highlights when using anonymous >classes > > >> Using build # 612 >> I have the following code in the constructor of a subclass of JFrame. >> >> exit() is a private void method. >> All declarations in the following code are erroneously highlighted as >> unused. >> It only happened after I put in the anonymous WindowAdapter. >> Compiles fine, runs fine. >> >> JButton connectButton = new JButton("Connect"); >> JButton disconnectButton = new JButton("Disconnect"); >> Box connectionPanel = new Box(BoxLayout.X_AXIS); >> Component glue = Box.createGlue(); >> connectionPanel.add(glue); >> connectionPanel.add(connectButton); >> connectionPanel.add(glue); >> connectionPanel.add(disconnectButton); >> connectionPanel.add(glue); >> >> messageField = new JTextField("Ready"); >> Dimension maxSize = new Dimension(messageField.getMaximumSize >> ().width, >> messageField.getPreferredSize >> ().height); >> messageField.setMaximumSize(maxSize); >> detailBox = new JTextArea(); >> >> JButton ackButton = new JButton("ACK"); >> JButton nakButton = new JButton("NAK"); >> Box ackPanel = new Box(BoxLayout.X_AXIS); >> ackPanel.add(glue); >> ackPanel.add(ackButton); >> ackPanel.add(glue); >> ackPanel.add(nakButton); >> ackPanel.add(glue); >> >> JButton exitButton = new JButton("Exit"); >> exitButton.addActionListener(new ActionListener() >> { >> public void >> actionPerformed(ActionEvent e) >> { >> exit(); >> } >> }); >> >> Box exitPanel = new Box(BoxLayout.X_AXIS); >> exitPanel.add(glue); >> exitPanel.add(exitButton); >> >> Box box = new Box(BoxLayout.Y_AXIS); >> box.add(connectionPanel); >> box.add(messageField); >> box.add(detailBox); >> box.add(ackPanel); >> box.add(exitPanel); >> getContentPane().add(box); >> >> addWindowListener(new WindowAdapter() >> { >> public void >> windowClosing(WindowEvent e) >> { >> exit(); >> } >> }); >> >> Graham Lea >> >> -- >> Software Engineer >> Forge Research Pty Ltd >> Suite 116, Bay 9, Locomotive Workshop >> Australian Technology Park, Cornwallis Street >> Eveleigh NSW 1430 Australia >> Phone: +61 2 9209 4152 Fax: +61 2 9209 4172 >> www.forge.com.au >> >> ---------------------------------------------------------------------- >> This message contains privileged and confidential information intended >> only for the use of the addressee named above. If you are not the >> intended recipient of this message you must not disseminate, copy or >> take any action in reliance on it. If you have received this message >> in error please notify the sender immediately. Any views expressed in >> this message are those of the individual sender, except where the >> sender specifically states them to be the views of another (including >> a Body Corporate). >> ---------------------------------------------------------------------- >> Graham Lea -- Software Engineer Forge Research Pty Ltd Suite 116, Bay 9, Locomotive Workshop Australian Technology Park, Cornwallis Street Eveleigh NSW 1430 Australia Phone: +61 2 9209 4152 Fax: +61 2 9209 4172 www.forge.com.au ---------------------------------------------------------------------- This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you must not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify the sender immediately. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of another (including a Body Corporate). ---------------------------------------------------------------------- _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
