Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

How to receive events from a jcombobox in an internal Jpanel ??

Thread view: 
Etantonio - 14 Nov 2006 22:51 GMT
Good evening,
I've a Frame with two Jpanel, in Jpanel1 I've a Jcombobox and it's
listener while in Jpanel2 I've a JLabel where I want to write the
selected value of the Jcombobox,
Jpanel1 , Jpanel2 and the main frame are in 3 separate class and files,
this because I want to arrange a modular design.
My question is how I can receive in the main Frame the event coming
from Jcombox value changed in Jpanel1 ???

Thanks for your help

Antonio
www.etantonio.it/en
Knute Johnson - 14 Nov 2006 23:57 GMT
> Good evening,
> I've a Frame with two Jpanel, in Jpanel1 I've a Jcombobox and it's
[quoted text clipped - 9 lines]
> Antonio
> www.etantonio.it/en

Write an event listener in your main Frame and use that listener on your
JComboBox.

Signature

Knute Johnson
email s/nospam/knute/

Etantonio - 15 Nov 2006 07:42 GMT
I already have an event listener in the main frame, but I've also one
in Jpanel1 and when I change the selected value in the combobox the
scheduler go in this last one event listener, how I can dispach to the
Frame listener ???

Thanks

Antonio
www.etantonio.it/en

Knute Johnson ha scritto:

> > Good evening,
> > I've a Frame with two Jpanel, in Jpanel1 I've a Jcombobox and it's
[quoted text clipped - 12 lines]
> Write an event listener in your main Frame and use that listener on your
> JComboBox.
Ian Wilson - 15 Nov 2006 16:09 GMT
Etantonio top-posted:
> I already have an event listener in the main frame, but I've also one
> in Jpanel1 and when I change the selected value in the combobox the
> scheduler go in this last one event listener, how I can dispach to the
> Frame listener ???

Answered in one of the other newsgroups you multi-posted to.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.