[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

what does this mean, I do not understand

Posted on 2007-03-17
4
Medium Priority
?
272 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
  • 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
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 …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Suggested Courses
Course of the Month18 days, 1 hour left to enroll

830 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