Search:

Type: Posts; User: knightmetal

Search: Search took 0.68 seconds.

  1. Replies
    3
    Views
    620

    Re: Array question

    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....
  2. Replies
    3
    Views
    620

    Array question

    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...
  3. Replies
    6
    Views
    925

    Re: PApplet question

    Thanks, I've asked around in several forums and it seems nobody knows the PApplet class.
  4. Replies
    6
    Views
    925

    PApplet question

    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...
  5. Replies
    5
    Views
    757

    Re: Passing variables with void methods

    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?
    ...
  6. Replies
    5
    Views
    757

    Re: Passing variables with void methods

    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 :)
  7. Replies
    5
    Views
    757

    Passing variables with void methods

    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.
    ...
  8. Replies
    10
    Views
    1,603

    Re: Resizable image?

    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...
  9. Replies
    10
    Views
    1,603

    Re: Resizable image?

    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,...
  10. Replies
    10
    Views
    1,603

    Resizable image?

    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....
  11. Replies
    5
    Views
    1,147

    Re: Image without a frame, is it possible?

    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.
  12. Replies
    5
    Views
    1,147

    Image without a frame, is it possible?

    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...
  13. Replies
    5
    Views
    2,838

    NetBeans Desktop Application in Java

    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...
  14. Re: Having trouble with a simple animation

    Thanks copeg, yes it's a lot to take care of but I'll do what you suggested, one step at a time.
  15. Having trouble with a simple animation

    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...
  16. Re: className.main(new String[]{"filename.txt"}); - Help

    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.
  17. Re: className.main(new String[]{"filename.txt"}); - Help

    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...
  18. className.main(new String[]{"filename.txt"}); - Help

    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...
  19. Replies
    3
    Views
    411

    Re: Help with ActionListener please

    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...
  20. Replies
    3
    Views
    411

    Help with ActionListener please

    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...
Results 1 to 20 of 20