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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:36:00+00:00 2026-05-24T02:36:00+00:00

We are trying to create an application using the LWUIT Resource Editor as much

  • 0

We are trying to create an application using the LWUIT Resource Editor as much as possible, it’s to say, avoiding creating the UI by code if we can.

We found out there is the possibility to assign a group to a RadioButton by setting the corresponding property on the Resource Editor tool.

So, as we need to implement some functionality for those radio buttons, how can we get the reference to that ButtonGroup instance that the UIBuilder has created (I suppose)?

And yes, considering we are using the Resource Editor tool to generate our midlets, the “custom” code is written on the StateMachine class.

Regards.

  • 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-05-24T02:36:01+00:00Added an answer on May 24, 2026 at 2:36 am

    AFAIK you can’t get ButtonGroup from ResourceEdit#GUI. You can only possible to get RadioButton group name. But possible to add the RadioButton into ButtonGroup through your code. See the following code,

    For calling StateMachine() constructor(use this code inside of constructor),

    Form form = (Form) this.startApp(resources, null, true);
     RadioButton rb1 = this.findRadioButton(form);
     RadioButton rb = this.findRadioButton1(form);
     ButtonGroup bg = new ButtonGroup();
     bg.add(rb);
     bg.add(rb1);
     bg.setSelected(0);
    

    For calling StateMachine(String resFile) constructor(use this code inside of your MIDlet class),

     StateMachine sm = new StateMachine("/Sample.res");
     RadioButton rb1 = sm.findRadioButton(Display.getInstance().getCurrent());
     RadioButton rb = sm.findRadioButton1(Display.getInstance().getCurrent());
     ButtonGroup bg = new ButtonGroup();
     bg.add(rb);
     bg.add(rb1);
     bg.setSelected(0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create new application using BLToolkit but i can't compile the code,
Well... I am trying to create an application using the TTS Engine. I can
I was trying to create a mail reader application using haskell. I found HaskellNet
Am trying to create a server application in c#.In the code am using the
I'm trying to create application for WP7 using data from compass sensor. I've found
I'm trying to create my first application using Django. I'm using the following code
I'm trying to create a web application using maven, tomcat and hibernate. Now I'm
I am trying to create my first GUI application using (Java + Eclipse +
I'm trying to create a very simple chat application in Flex/.Net using FluorineFX but
I'm trying to create an application that uses the iPhone MapView (under Google Code).

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.