I'm making a short quiz for my school project and I stumbled upon a small problem. As I finished making questions and adding them into netbeans, I thought I should make a counter for the number of right answers. The number should be displayed on a special frame, possibly with jLabel object. I know this sounds like a noob question, but I'm almost new to netbeans.
And yes, I can make a counter in regular Java programme:
int a = 0;
a = a+1;
System.out.println("The number of correct answers is "+a);
jRadioButton19 is the correct answer in this case.
The thing is, I was always only used to System.out.print and that stuff, so I don't know much about the massive netbeans code. And also, you can't change like half of it. Can somebody help me out?
The best thing I can tell you to do is to ditch the GUI builder right now. It might seem like it's saving you some work, but in reality it's really hurting you.
You also might want to check this out: How to Make Dialogs (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
I would love to ditch it and return back to eclipse, man, but the thing is, this application MUST be done in Netbeans. Oh the stress it's giving me!
By all means use Netbeans, but just drop the GUI builder.
Unless it's the point of the course to learn the NetBeans GUI builder, in which case you should approach your instructor.
Yes, sadly that's the point. It must be also created in GUI builder. There is only this small counter left to make, and it's too late to ask my instructor for help. He is my teacher and I need it done until friday. I sadly have no lessons until then. This is not the main point of my course, it's just a project for the end of a school year, and next year I will be happily programming in Eclipse again.