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.
Type: Posts; User: Blasfemmy
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.
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,...
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...
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)); ...
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...
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
...
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...
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...
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...