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
Solved

radio buttons, itemStateChanged, any order?

Posted on 1998-06-21
2
387 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 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jdbc error in jsp application 20 63
Java exception bubble up 2 21
Is Applet the way to go for my drag and drop system? 8 25
Java Eclipse Loop 3 20
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

809 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