Solved

what does this mean, I do not understand

Posted on 2007-03-17
4
253 Views
Last Modified: 2010-03-05
   private void ExitItemStateChanged(java.awt.event.ItemEvent evt) {                                      
        ExitItemStateChanged(evt);
        if (evt.getStateChange() == ItemEvent.SELECTED)
        {
           setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        }
        else;
0
Comment
Question by:jmurguia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 160 total points
ID: 18740652
Is this Java?  I assume so...

I doubt that code would work, as the:

        ExitItemStateChanged(evt);

line would cause an infinite loop

What it's trying to do (I think) is change the application so that it ill stop running when the window is closed if the item tied to thi event is selected

Tim
0
 
LVL 35

Assisted Solution

by:TimYates
TimYates earned 160 total points
ID: 18740653
it ill == it will ;-)
0
 
LVL 16

Assisted Solution

by:suprapto45
suprapto45 earned 60 total points
ID: 18741137
I think that you used NetBeans to develop it.

It means that you may have a JComboBox with the name of Exit or exit and you assign an ItemStateChanged on it.

And TimYates is right. I think that it will cause infinite loop as well.

David
0
 
LVL 30

Assisted Solution

by:Mayank S
Mayank S earned 30 total points
ID: 18741231
The else ; statement is also redundant.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question