Search:

Type: Posts; User: mwardjava92

Search: Search took 0.13 seconds.

  1. Replies
    6
    Views
    2,175

    Re: JComboBox won't add array of numbers

    I took your advice and added 'i', it works now. Thank you.
  2. Replies
    6
    Views
    2,175

    Re: JComboBox won't add array of numbers

    I have added:

    jcbSizes = new JComboBox();

    This has taken care of the error in main I was getting.
    I have also changed the for loop to:

    for(int i = 1; i < 100; i ++)
    {...
  3. Replies
    6
    Views
    2,175

    Re: JComboBox won't add array of numbers

    I have found and added the addItem() method to get this:


    for(int i = 1; i < 100; i ++)
    {
    jcbFonts.addItem(sizes);
    }

    It is compiling but I am getting this error when I run it:
  4. Replies
    6
    Views
    2,175

    JComboBox won't add array of numbers

    I'm creating a JFrame that allows the user to change the font and font size of a piece of text by using 2 JCheckBoxes. The first JCheckBox gives the user every font available and it works fine. The...
Results 1 to 4 of 4