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 4 of 4

Thread: Create JRadioButtons from HashMap by loop

  1. #1
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Create JRadioButtons from HashMap by loop

    (mEntry is accessed from inner class needs to be declared final).
    define mEntry as final. local variables must be saved for inner classes to use.

    error at 43 (Erroneous tree type-)
    Please post the full text of the compiler's error message. I don't understand what you have posted
    If you don't understand my answer, don't ignore it, ask a question.

  2. The Following User Says Thank You to Norm For This Useful Post:

    poundnmonitor (March 30th, 2013)


  3. #2
    Junior Member
    Join Date
    Mar 2013
    Posts
    2
    My Mood
    Starving
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: Create JRadioButtons from HashMap by loop

    I made mEntry and display final; I am still getting errors. I have edited the original post.

  4. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Create JRadioButtons from HashMap by loop

    I am still getting errors
    Please copy the full text of the compiler's error messages and paste it here.
    The posted code can't be copied and compiled because of the line numbering.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. loop help need to create the letter L AND Y
    By YG N JYP FAM4EVA in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 26th, 2013, 01:56 PM
  2. Hashmap
    By ryan12345 in forum Java Theory & Questions
    Replies: 6
    Last Post: November 2nd, 2012, 07:04 PM
  3. I need to create a certain SHAPE with FOR LOOP.
    By Rage1337 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: August 4th, 2012, 09:15 AM
  4. Replies: 5
    Last Post: August 11th, 2011, 12:39 PM
  5. [SOLVED] Should i use a hashmap?
    By 6Sloth9 in forum Collections and Generics
    Replies: 2
    Last Post: May 1st, 2011, 08:58 PM