Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing - Listener with multiple sources problem  RSS feed

 
Keith Mc C
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey,
i am designing a GUI for class timetables in my college and i have encountered the following problem:
In the 'Master' frame i want the components at the top of the frame to change when the JRadioButtons do, i have four JRadioButtons in 2 ButtonGroups.
they are -> o Class o Lecturer
and -> o Add o Remove

so different combinations of selected radio buttons will change what components appear above.

Would i use an itemStateChanged listener or what would be the best way?

Could some1 please tell me a suggested solution because i have been stuck for sometime, or if you have had a similar problem yourself.

thanks a million.
keith.
 
Keith Mc C
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
never mind so, i just pased the JPanel to listener instead
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!