Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

radio buttons, itemStateChanged, any order?

Posted on 1998-06-21
2
Medium Priority
?
411 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
2 Comments
 
LVL 1

Author Comment

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

Accepted Solution

by:
msmolyak earned 100 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

916 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