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: Suggestions how to do this?

  1. #1
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Suggestions how to do this?

    For those who saw my most recent post, I am still working with this Fantasy Football Draft Manager Program and now I need help stylistically.

    Ok, so right now I have a filter system that allows the user to filter through the 500 or so players based on the following criteria: Positions, NFL Team, and Last Name. The user can activate and deactivate the NFL Team and the Last Name filters at their discretion. The Positions filter however is always activated as it is the primary filter. The Positions filter is currently a JComboBox with the following options: All,QB,RB,WR,RB/WR,TE,DST,K. There is the possibility of expansion, so that might increase to other options in the future.

    Now, I had an idea. What if I already have my QB and I want to look at all the other positions, excluding QBs. That would be a nice feature and it would have to be some sort of checkbox thing I would think. However, with the possibility of a dynamic number of positions AND for it to look good, adding 8 checkboxes in a clustered group just wont do it. My next thought was perhaps putting checkboxes in the JComboBox, but I think that would still look tacky and possibly difficult to use.

    Does anyone have any suggestions as to what the best route to go would be?
    Last edited by aussiemcgr; September 2nd, 2010 at 11:48 AM. Reason: Fixed Both Bugs. Still need help with style issue.


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Suggestions how to do this?

    You can use a list component (combo box, Radio buttons, etc.) to show which position the user is currently looking to fill, and have an option to show all unfilled positions and/or all positions.

    I think the user will generally want to look through each position one at a time or look at all available picks together, so it doesn't make a whole lot of sense having say only QB and RB visible.

    Also, with 8 positions it's not too clustered to look through check boxes (especially if they're organized in a clear and concise manner).