Search:

Type: Posts; User: java()

Search: Search took 0.09 seconds.

  1. Variable from superclass using in JFrame class

    Hopes my title explains a lot, but if it's still a little vague. I'll try to explain it a bit more. I would like to pass a variable I have in my main to my JFrame. In my main I calculate which...
  2. Replies
    2
    Views
    959

    Class vs Function

    I have a question about classes and functions. When to use which one? After some research I came to the conclusion always to use classes (OOP) except if I need to pass a parameter. Am I correct or is...
  3. Replies
    2
    Views
    1,761

    Re: Simulate keystroke

    I expected to see it on my screen of course, for example it types "qwerty" in notepad. But I just managed to fix my problem. I already tried KeyPress/Release before but now I keep it pressed for a...
  4. Replies
    2
    Views
    1,761

    Simulate keystroke

    So I'm trying to simulate a keystroke I used the following code (see below). When I open notepad it works but when I open the game in which I want to use it, it doesn't do anything. So keystrokes...
  5. Replies
    4
    Views
    1,559

    [SOLVED] Re: Run cmd commands through java

    It is working, you pointed me in the right direcition. It was the start command. for googlers who land on this page. I used the following, not sure why this is working but it does.


    package...
  6. Replies
    4
    Views
    1,559

    [SOLVED] Re: Run cmd commands through java

    When I change the command to: "notepad" it opened notepad as suspected.
  7. Replies
    4
    Views
    1,559

    [SOLVED] Run cmd commands through java

    I started this week with Java so I’m a beginner, not sure if my question is as well, so I post it here. I would like my application to execute a command in cmd. The command looks like

    So my...
Results 1 to 7 of 7