0
How to collect student subjects and grades alongside in java form
I'm working on a student admission system in java and everything is fine just that I have to collect some data from the student registering. The student's high school results in the form (subject & grades) I've thought of what kind of input can do this job but I haven't seen any. Or how can I implementation this function. If you need any more info to help me please ask
6 ответов
+ 2
You mean how to link the subject to the grade?
I imagine you should have a data model where you store all the grades of a specific student. The implementation would depend on the actual requirement but for example you can use a hashmap where keys are subjects, and values are grades. Or you could have all subjects and all grades in separate arrays, where the index position creates the correspondence between the two.
Sorry but you are not explaining very clearly, what your actual question is, and you have not shown any code that you already have, so it's very difficult to guess.
+ 2
Not the exact same scenario, but you can find loads of tutorials like this online, which show how to create a form in Swing and process the submitted data:
https://www.ebhor.com/registration-form-java/
0
Well doesn't really help I know how to do all that already just don't know how to implement the way the user will input the subjects alongside the grades. If I could get how to do this even in html it's a step forward to doing it in java
0
"How to implement the way the user will input the subjects alongside the grades"
...
Maybe have a look at different layout managers?
https://docs.oracle.com/javase/tutorial/uiswing/layout/visual.html
0
Yes I can handle the UI how it appears but how can I link them together ?
0
Thanks anyways