For some reason, when i check for the input of the spinner using an array with a switch statement it does this weird thing. If i use any sort of "if-statement" "for-loop" any thing of that nature, it...
Type: Posts; User: vandy22
For some reason, when i check for the input of the spinner using an array with a switch statement it does this weird thing. If i use any sort of "if-statement" "for-loop" any thing of that nature, it...
All of them, I think im using the right methods, but its throwing an error. Can u give me the reasons why its catching an error?! Thanks!
I'm making an android program that will generate problems that u can solve. The issue is whenever I try to convert a CharSequence to an Integer, it throws an error. Heres my code:
package...
Ok yeah I get it now, and It worked. Thanks alot!
--- Update ---
Great news! I figured out how to edit a layout in a listener. What I did was called the repaint function in the listener then...
Ok so norm im kind of not sure what your trying to get at here. Im sure your correct in how your thinking it but in my mind im not understanding what your trying to say. In my mind how can the frame...
This is really weird I have a text field that I made and whenever I start the program it doesnt show until I drag the screen bigger or smaller, Its not even being changed inside a listener. I'm just...
Well how do most people do it then? I suspect that theres people that when a button is clicked something from the layout is changed right? Theres got to be a way.
Ok so the weirdest thing happened. I went ahead and did what you said and found a method that should work:
frame.add(label, new FlowLayout());
but it didnt so I went back to this:
...
Ok so I looked at the class, I see alot of methods but im not sure exactly what I should be looking for? Could u give an example of what the code should look like to work?
Ok what should my class be extending then? And then I would need to put flowlayout in the actionPerformed method?
I made a simple java application for fun which I was planning to add on to and make alot better. I ran into an error with an action listener problem. The main point of the program was for me to click...
I made a simple java application for fun which I was planning to add on to and make alot better. I ran into an error with an action listener problem. The main point of the program was for me to click...