Search:

Type: Posts; User: grogger

Search: Search took 0.14 seconds.

  1. How to apply multiple filenamefilters to the same FileDialog object?

    I want to add two different filenamefilter to the same FileDialog object. My below code works, when I try to add more than one to the same FileDialog object, it breaks such that nothing seem as a...
  2. Re: Why System.in returns -1 when I pressed "Enter key" how can I mimic "Enter key" in console?

    I looked, actually I have managed to direct System.out to System.in. However, it did not solve my problem since I found that my problem is due to that the console stucks in System.in.read() method...
  3. Re: Why System.in returns -1 when I pressed "Enter key" how can I mimic "Enter key" in console?

    Thanks Norm, as you suggesterd I read the API doc and I found that "If the character does not have a numeric value, then -1 is returned." Then your suggestion String.valueOf() gives thecorrect...
  4. Why System.in returns -1 when I pressed "Enter key" how can I mimic "Enter key" in console?

    I used Robot class to mimic Enter key, and it worked as Norm suggested in https://www.javaprogrammingforums.com/whats-wrong-my-code/44395-how-java-handles-simulates-ansi-keycode-input-console.html. ...
  5. Re: How Java handles and simulates ANSI keycode input in console?

    I'm not sure what that means.

    [/QUOTE]

    Sorry, it is my mistake, it should be "...Robot class wrote to standart output (System.out)...", not "std.out". I will check your two terminal(command...
  6. Re: How Java handle and emulate Ansi keycode input in console?

    Ok, I am happy to see that, it is not related with Linux terminal. :) I saw similar statement as you saw in Windows command prompt:



    The second "$" sign shows that the next prompt line is in...
  7. Re: How Java handle and emulate Ansi keycode input in console?

    Of course;
    1. I opened a one LXTerminal.
    2. I entered all the necessary commands to compile and run my above Java program inside that terminal.
    3. I did not press any key during program's...
  8. Re: How Java handle and emulate Ansi keycode input in console?

    Sorry for wrong grammer in "...not workes in console program...." I corrected it in my post too.

    Norm, actually I did not since I assumed that "it requires lot of extra code to get rid of awt...
  9. Re: How Java handle and emulate Ansi keycode input in console?

    Oh my god! There have been already a Robot class in Java ! Thanks Norm !

    --- Update ---

    I wrote below only reading Robot Class's java documents, without trying Robot class in console, so I saw...
  10. How Java handles and simulates ANSI keycode input in console?

    My questions are :
    1. Can pure Java console application handle ANSI keycodes such as Enter, Function keys etc. when they entered as input by user?
    2. How can I simulate that "user pressed enter...
  11. Replies
    8
    Views
    1,578

    Re: How to make operational objects?

    I am not sure you got an answer already but I wrote my answer below :

    Because of two statements above, I ended up that : "you want to check what is the returning object's class, whether it is Set...
  12. Replies
    2
    Views
    601

    [SOLVED] Re: Can I build "my own type of java number"?

    Ok.
  13. Replies
    2
    Views
    601

    [SOLVED] Can I build "my own type of java number"?

    Hi,
    My question is whether I can create my own number type in Java or not? For instance, there exists max and min limits for integer,long,double and float built-in types. But,I want to add two 50...
Results 1 to 13 of 13