Solved t myself,
in Core.java.
The line
Core core = new Core();
in the main method should be
Core core = Core.getInstance();
Type: Posts; User: nggdowt
Solved t myself,
in Core.java.
The line
Core core = new Core();
in the main method should be
Core core = Core.getInstance();
oh that's a great suggestion, I think I am getting there. that way I can create the exact amount of action listener according to user input :D you save my day *kiss*
P.S. I am a dude, don't expect...
right, if anyone wants to know why, I am generating buttons according to use input. I am scan an array for inputs, if the array is {a,a,a,b,a} my code will generate 5 buttons in the order of...
first of all, I am sorry if I post it in the wrong sub-forum...but I guess this is a GUI problem..?I am not sure :<
the code below will probably explain the problem I got, but my goal is to have...
I am not sure what is going on to be honest, I have another card layout system in my code and it works fine.
Summary of what I noticed :
1. there are no errors.
2. when I try to switch from...
Thanks for all the great advice!
right, so the real problem. The constructor of ResPanel didn't get called at all...
The first thing I tried is changing
ResPanel r = new ResPanel(); to
JPanel r...
First of all, thanks for the quick reply.(for a moment I though my post was deleted lol)
I am sorry if I didn't make it clear, but I kinda want to keep a certain "style" for the code.
The new...
line 36, else if (gender == female)
should be (gender == "female") because you are checking if the gender equals to a string "female" and not checking against a variable called female.
My problem is the the Button"test2" in the constructor won't show up. I have no idea what is wrong and there are no error at all.
My Goal is to create serveral classes that represent a part of my...