Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: j2me Problem with choicegroup

  1. #1
    Junior Member zero22hero's Avatar
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default j2me Problem with choicegroup

    Hi,
    I have 2 choiceGroups, all I want to do is: when I hit Send command then all checked checkboxes in choiceGroup1 and those in choiceGroup2 will swap together (also delete checked ones) here is my function, I'm working with Netbean:
    PHP Code:
    private void UpdateValue()
        {
        
           
    boolean get1[] = new boolean[choiceGroup.size()];
          
          
    choiceGroup.getSelectedFlags(get1);
         
          for (
    int i 0get1.lengthi++) {
            if (
    get1[i]) {
                
    choiceGroup1.append(choiceGroup.getString(i), null);
                
    choiceGroup.delete(i);
              }
        }
          
    boolean get2[] = new boolean[choiceGroup1.size()];
          
    choiceGroup1.getSelectedFlags(get2);
           for (
    int j 0get2.lengthj++) {
            if (
    get2[j]) {
               
    choiceGroup.append(choiceGroup1.getString(j), null);
                
    choiceGroup1.delete(j);
            }
        }
          


    it doesnt work when u check all checkboxes in choiceGroup1 or choiceGroup2
    sorry for my bad English, please help


  2. #2
    Junior Member zero22hero's Avatar
    Join Date
    Dec 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: j2me Problem with choicegroup

    anyone please?

Similar Threads

  1. J2ME converter program
    By sackling in forum What's Wrong With My Code?
    Replies: 0
    Last Post: December 6th, 2010, 09:13 AM
  2. J2ME application not launching
    By vishal21 in forum Java ME (Mobile Edition)
    Replies: 0
    Last Post: November 22nd, 2010, 01:15 PM
  3. problem in j2me
    By Sunil Raghuvanshi in forum Java ME (Mobile Edition)
    Replies: 1
    Last Post: March 9th, 2010, 09:08 AM
  4. J2EE and J2ME projects
    By vmwelt in forum Paid Java Projects
    Replies: 0
    Last Post: August 12th, 2009, 05:13 PM
  5. Runtime exception while developing J2ME mobile application with aspectJ
    By yousef atya in forum Java ME (Mobile Edition)
    Replies: 3
    Last Post: April 29th, 2009, 10:55 AM