Solved

what does this mean, I do not understand

Posted on 2007-03-17
4
246 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 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:mayankeagle
mayankeagle earned 30 total points
ID: 18741231
The else ; statement is also redundant.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now