This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Pblm with JFrame and JPanel

 
Suji N
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am new to java.
Pl help me.
I have a JFrame Class Which contains a MenuItem.
and a JPanel Class Which Contains a RadioButton.
When the user selects the radio button, that menu item should get disabled.
I am facing a lot of pblms with this one in my project.
Please help me
Thanksinadvance
Yours
Suji
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Call menuItem.setEnabled(false) in the listener event for the radio button.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic