?
Solved

what does this mean, I do not understand

Posted on 2007-03-17
4
Medium Priority
?
262 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 480 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 480 total points
ID: 18740653
it ill == it will ;-)
0
 
LVL 16

Assisted Solution

by:suprapto45
suprapto45 earned 180 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 90 total points
ID: 18741231
The else ; statement is also redundant.
0

Featured Post

The Ideal Solution for Multi-Display Applications

Check out ATEN’s VS1912 12-Port DP Video Wall Media Player at InfoComm 2017. Kerri describes how easy it is to design creative video walls in asymmetric layouts and schedule detailed playlists ahead of time with its advanced scheduling feature.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses
Course of the Month8 days, 4 hours left to enroll

765 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