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 8548265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:27:18+00:00 2026-06-11T13:27:18+00:00

I am developing GUI in an application (which is based on Spring framework) using

  • 0

I am developing GUI in an application (which is based on Spring framework) using Swing. In one of the screens, we have several JButtons, JLabels, JFormattedtextFields and JRadioButtons in a panel.
The question is:

1). When I press the tab button from the keyboard, the control does not goe to the JRadioButton field (though it goes to other components before and after it). It does not appear on these radio buttons (a serious issue with the application). How to fix this.

2).Also to set the text(label) for each radio buton, i have to do in separate labels:

<label text="Raiding" constraints="21,1" font="Arial-PLAIN-12" />
    <buttongroup>
    <radiobutton id="raidingYesID"  font="Arial-PLAIN-12"
                    opaque="false" constraints="22,1" label="Yes"/>
    <label text="Yes" constraints="23,1" font="Arial-PLAIN-12" />                   
    <radiobutton id="raidingNOID" font="Arial-PLAIN-12"
                   selected="true" opaque="true" constraints="24,1"/>            
    <label text="No" constraints="25,1" font="Arial-PLAIN-12" />   
    </buttongroup>

I tried to do it in java, but the labels did not appear:

raidingYesID.setLabel("Yes");
raidingYesID.setName("Yes");
raidingNOID.setText("No");

none of them made any difference, but i could get the label on console by using:

System.out.println(raidingYesID.getLabel());

do suggest any solutions…

  • 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-11T13:27:19+00:00Added an answer on June 11, 2026 at 1:27 pm

    For your second question: use setText() to set the JRadioButton text and use getText() to get it back. The button text can also be set in the constructor.

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

Sidebar

Related Questions

I'm developing Swing application, and everything works fine usually. But I have an GUI
im developing an GUI Application, using JSWing, i load XML file, then deserialize it,
I am developing a Java Desktop Application with GUI implemented in SWING. I hava
which GUI based C++ IDE is commonly used for developing gnome applications? I am
I am developing a standalone application in Java using swing API. I need experts
I am developing a GUI application in C# using the design mode in VS2008.
I am developing Windows Form Application using Microsoft Visual C# 2010 I have two
I'm developing a web application with multiple frameworks (spring, hibernate, spring-security, ZK for GUI),
I am developing a GUI based application in MS Visual Studio 2005, I just
I am currently developing a little application with a highly-dynamic GUI which needs a

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.