Solved

radio buttons, itemStateChanged, any order?

Posted on 1998-06-21
2
396 Views
Last Modified: 2008-02-01
Have radio buttons A and B.   Any change should tickle two listeners.  One for button going active; one
for button going inactive.  Is there any order to this?   Can I be sure on A->B that either one will wake up first?

awt tyro.  Thanks in advance
0
Comment
Question by:hank1
[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 Comments
 
LVL 1

Author Comment

by:hank1
ID: 1223476
Edited text of question
0
 
LVL 5

Accepted Solution

by:
msmolyak earned 50 total points
ID: 1223477
I do not think that the listener definition guarantees you the order. You can look at the implementation of addItemListener() and processItemEvent() methods to see what happens to the listeners and in which order they are called. Or you can override those methods to insure that they are called in the order desired.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JavaFX TableView not displaying correctly 3 162
Is Applet the way to go for my drag and drop system? 8 51
Html split(text) 2 50
Java import explained 4 49
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
In this post we will learn different types of Android Layout and some basics of an Android App.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

759 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