Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8972043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T18:07:01+00:00 2026-06-15T18:07:01+00:00

Look at image below and notice JRadioButtonMenuItem do not extends JRadioButton , even not

  • 0

Look at image below and notice JRadioButtonMenuItem do not extends JRadioButton, even not JToggleButton. My guess is that they repeat code. :P Or perhaps they have a intermediary class inside these toggle component?

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T18:07:03+00:00Added an answer on June 15, 2026 at 6:07 pm

    The thing is that Java does not support multiple inheritance, otherwise you could have considered having JRadioButtonMenuItem extending both JMenuItem and JRadioButton (although it is not clear if it would have been a good implementation choice).

    So this means that you have to choose one or the other, in this case, the choice has been made to extend JMenuItem.

    Now, if you take a look, you see that JMenuItem and JRadioButton have a common ancestor which is AbstractButton which actually encapsulates a ButtonModel where everything related to the current state of a button is stored (armed, selected, etc…).

    In the case of a JRadioButtonMenuItem it uses a ToggleButtonModel and so here you have how the same model is shared by JRadioButton and JRadioButtonMenutItem.

    Regarding the view, this is all delegated into the BasicRadioButtonMenuItemUI and especially more into BasicMenuItemUI (which is the parent of BasicRadioButtonMenuItemUI). Eventually it relies on the current Look-and-feel to provide the different icons, styles, borders, fonts, etc…

    And this is how the whole thing goes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please look at the image below. Notice that Employee_ID for the Job_History and Employees
I want an image below an EditText so that it give me a look
If you look at my URL below, and on a connection that may not
Take a look at the image below. I defined the red boxes inside the
Imagine I am plotting e.g. this: plot(1:1500,1:1500) This will look like the image below,
I'm trying to make a drawable which should look like in the image below:
sometimes i see an image not being served when the browser look at www.somesite.com/some_image.jpg
I want my UITableViewCell to look like the image below where there seems to
Please look at the image below !! So in this image... You can see
I have seen css that can make text look like an image in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.