Search:

Type: Posts; User: Blasfemmy

Search: Search took 0.22 seconds.

  1. Replies
    17
    Views
    1,928

    Re: JLabel/ComboBox Issues

    Oh, I see! I didn't even think of that! So instead of having one comboBox/Label for each array, have one for each position and modify the contents as needed.
  2. Replies
    17
    Views
    1,928

    Re: JLabel/ComboBox Issues

    This is where my problem was originating from though. I don't want it to add them to them bottom, but to overwrite them, to have them put in the same spot where the previous one was. For example,...
  3. Replies
    17
    Views
    1,928

    Re: JLabel/ComboBox Issues

    I'm trying to add them to an array index, but I can't seem to figure it out. I am getting an incompatible data types error, thus I presume that I am declaring them incorrectly.

    I added the...
  4. Replies
    17
    Views
    1,928

    Re: JLabel/ComboBox Issues

    Ahh, I see, it is working nicely!

    Here is that updated snippet:


    super("Athletic Trainer Sign In");
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    setLayout (new GridLayout(8,2)); ...
  5. Replies
    17
    Views
    1,928

    Re: JLabel/ComboBox Issues

    Okay, so I cleaned up the code a bit, and was able to make the JComboBox disappear when not selected.


    I figured that it couldn't hurt if I added it to prevent a compiler error, because at that...
  6. Replies
    17
    Views
    1,928

    Re: JLabel/ComboBox Issues

    Yeah, I was planning on cleaning up the code a bit and worrying about the layout later, once I got these few program-breaking errors fixed.



    Hmm, would I be able to assign something like
    ...
  7. Replies
    17
    Views
    1,928

    Re: JLabel/ComboBox Issues

    I my thinking was that the initialization of the JComboBoxes are based off of the value of the selectedValue, thus while it is selected, then it is initialized, and when it is not selected, it...
  8. Replies
    17
    Views
    1,928

    Re: JLabel/ComboBox Issues

    Okay, when the program runs, there is a JComboBox that contains the bodyPart array. What it is supposed to do is when one of the items in the JComboBox are selected, it makes another JComboBox...
  9. Replies
    17
    Views
    1,928

    JLabel/ComboBox Issues

    Greetings! I am having some trouble with JLabel.

    This is a Sign In program for my high school's athletic trainer that I am writing. When it first runs, it should display an empty text field...
Results 1 to 9 of 9