Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3094

Re: Two JComboBoxes One c

From "brahma.mca07" <brahma.mca07@THRWHITE.remove-dii-this>
Subject Re: Two JComboBoxes One c
Message-ID <be264450-b26f-4cf6-a4ff-2269c8368ee3@i12g2000prf.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <fnl55u$rpi$1@news.nems.noaa.gov>
Date 2011-04-27 15:42 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui, comp.
On Jan 28, 10:59=A0pm, RC <raymond.c...@nospam.noaa.gov> wrote:
> I have two JComboBoxes
>
> JComboBox combo1 =3D new JComboBox();
> JComboBox combo2 =3D new JComboBox();
>
> Both I implemented the ItemListener
> Now I want if combo1 itemStateChanged(ItemEvent evet)
> then combo2 also itemStateChanged.
>
> Vice versa, if combo2 itemStateChanged, then combo1 also
> itemStateChanged.
>
> Any idea how to do that?
>
> Thank Q in advance!

hi
 your question is quite intresting.............you want to use to
associated events & both are inter related ........................so
you must serialize them.........i thing its better to use boolean
variable to serialize events ......................
                                               thanks

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Two JComboBoxes One chang "RC" <rc@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000
  Re: Two JComboBoxes One c "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000
  Re: Two JComboBoxes One c "brahma.mca07" <brahma.mca07@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000
  Re: Two JComboBoxes One c "Roedy Green" <roedy.green@THRWHITE.remove-dii-this> - 2011-04-27 15:42 +0000

csiph-web