Hello pbrockway2, thanks a lot for your answer.
I was ashamed to ask because I knew how to do this in the past, but I totally forgot you need the '[]' next to the method to retrieve the value....
Type: Posts; User: knightmetal
Hello pbrockway2, thanks a lot for your answer.
I was ashamed to ask because I knew how to do this in the past, but I totally forgot you need the '[]' next to the method to retrieve the value....
I'm kind of ashamed to ask this question but can anybody tell me how I can print a particular value of the array in the main method? how do I print x[2], for example. Thanks.
package...
Thanks, I've asked around in several forums and it seems nobody knows the PApplet class.
Hello, in this example I have two applets which I'm running as a Java Application. This might sound silly but how can I close one of the windows so that the other one remains open? because every time...
Thanks and sorry, I'll try to make it clearer:
Please look at the mult() and add5() methods:
The question is, how do I pass "myMult1", "myMult2" and "add" variables to the "total()" method?
...
Hello newbie,
Well that's the thing. I want to pass 2 variables from the multi() method and 1 variable from add5() method. 1 + 2 = 3 :)
Hello,
Not sure if this is either too easy or just impossible. Here's the story: I'm processing data from a sensor and I have several methods that do a specific task with those input values.
...
Thanks Jonathan, the repaint() part didn't work for me but I'm pretty sure I did it wrong, please check it out and let me know:
package resize2;
import java.awt.BorderLayout;
import...
Thanks Kevin,
And do you know how I can just fix the frame to the image? because something I don't like is that every time I click and drag the frame the image stays the same but not the frame,...
Hello,
I have an image with a standard size, what I'm trying to do is I want to be able to resize the image manually after opening it, i.e. click one of the corners and drag it to the wished size....
Thanks pbrockway2, a splash screen is what I need! now I have to get acquainted with it as I had never heard of it before.
Hello
Does anyone know if it is possible to open an image without first having to load it on to a frame? I want to display an image, my university logo, which will act as a...
I'm learning how to designs GUI's but I realized it's something that can take ages to learn since putting component after component in the frame AND then placing them in the right position can give...
Thanks copeg, yes it's a lot to take care of but I'll do what you suggested, one step at a time.
I'm trying to write a simple animation but I'm having serious trouble trying to understand the concepts, the animation itself does not matter (it's just a simple line) , I just want to see something...
I've seen that line before and what it says is:
setup(500,500); // it is size of the screen, that normally works except when I use the action listener.
Thanks anyway.
Hi Norm (again)
Yesterday I posted a similar question but I think it was on "what's wrong with my question" page, you couldn't help me much as I didn't give you too much information on what the...
Can anybody explain to me what that line of code does? I've seen it before in the main method but I don't understand, why is it different to when we just create an instance of a class?
I'm used...
Hi Norm, thanks for answering.
Now that you talk about that line I think I understand where the problem comes from, I don’t know how to fix it though. I'm writing the code in NetBeans but actually...
Hey guys, I need help.
I have three classes (Main, Table and ActionListenerWin). I'm using the actionListener in "ActionListenerWin" to call the "Table" class when a button is clicked. Can anybody...