Search:

Type: Posts; User: JosAH

Page 1 of 20 1 2 3 4

Search: Search took 0.16 seconds.

  1. Replies
    5
    Views
    165

    Re: Java and Javascript??

    Ah, yes, Ken; 'Nanook' we used to call him, Ken Nanook Iverson, the old eskimo and inventor of deep fried and frozen fish fillet. And JavaScript of course; how could I forget good ol' Nanook ...
    ...
  2. Replies
    3
    Views
    105

    Re: Painfully dull reimplementation of code

    ... and what is your question and why is this in the 'advanced' section?

    kind regards,

    Jos
  3. Replies
    5
    Views
    165

    Re: Java and Javascript??

    Yes, preferably card games because Java is interpreted, so it's slow; start with a simple, very slow card game; bridge will do fine. Oh, and JavaScript is a system programming language because it was...
  4. Replies
    7
    Views
    169

    Re: DJ Project Web Browser errors

    Yup; if I were the OP I'd start reading the documentation of that embedded web browser; from the code I can see a native 'event pump' for the swt framework, but in a Swing application; that doesn't...
  5. Replies
    7
    Views
    169

    Re: DJ Project Web Browser errors

    I checked that terrible stack trace: line #27 (see above) is very suspicious: you are supplying a 32 bit .dll file for a 64 bit system.

    kind regards,

    Jos
  6. Replies
    7
    Views
    169

    Re: DJ Project Web Browser errors

    Try http://www.google.com, instead of http://google.com

    kind regards,

    Jos
  7. Replies
    4
    Views
    195

    Re: Java online compiler API

    What to do then if you don't have all the sources but you do use certain .jar files? (e.g. Apache stuff).

    kind regards,

    Jo
  8. Replies
    16
    Views
    219

    Re: Paint help please!

    'this' is Java's way of saying yourself' suppose you are a changeColor object that constructs itself; translated to English, you say to yourself: create a JFrame and add yourself to it and add a...
  9. Replies
    2
    Views
    181

    Re: Removing elements from ArrayList

    The StringBuilder class doesn't override the equals() method, nor the hashCode() method, so the implementations for the Object class are inherited. Its equals() method simply does 'this == that'.
    ...
  10. Replies
    16
    Views
    219

    Re: Paint help please!

    Why are you adding an ordinary JPanel to your JFrame? You should add 'this', which is a special JPanel (you just wrote it).

    kind regards,

    Jos

    ps. and don't call repaint() in your...
  11. Replies
    16
    Views
    219

    Re: Paint help please!

    This is just programming; your paintComponent( ... ) method should be aware that it should paiint a line; your MouseListener decides that; it could set a boolean variable to true which makes the...
  12. Replies
    16
    Views
    219

    Re: Paint help please!

    You can't define a method inside the body of another method either. Methods aren't 'first class citizens' in Java.

    kind regards,

    Jos
  13. Replies
    16
    Views
    219

    Re: Paint help please!

    You can't define a method in the middle of a loop (see line #30).

    kind regards,

    Jos
  14. Replies
    16
    Views
    271

    Re: Teacher Looking For Recommendations

    A few months ago that poster posted the same link and I did the same what you did: I read the crap and posted a comment:...
  15. Replies
    9
    Views
    201

    Re: Implicit and Explicit casting

    Heh, that reminds me of an old IOCCC entry:



    char*lie;

    double time, me= !0XFACE,

    not; int rested, get, out;
  16. Replies
    7
    Views
    188

    Re: throws - Question

    When a method 'throws X', it tells the compiler that it might throw an X (but doesn't have to). If your main( ... ) method throws X, and it does so, the JVM (the caller of the main( ... ) method) has...
  17. Thread: Good GUI

    by JosAH
    Replies
    15
    Views
    232

    Re: Good GUI

    I'm calling the wink police! Constable! This man winked at me! In the open! Poke his eye out! I feel so smeared ...

    kindest regards,

    Jos ;-)
  18. Thread: Good GUI

    by JosAH
    Replies
    15
    Views
    232

    Re: Good GUI

    Well, you did suggest a wink; I saw you do it; it is almost as filthy and profane as an actual wink ...

    kind regards,

    Jos
  19. Replies
    4
    Views
    195

    Re: Java online compiler API

    How does that compiler handle 'import' statements? Does it have all referenced .java and/or .class files or does it ask for them?

    kind regards,

    Jos
  20. Replies
    4
    Views
    211

    Re: StdInput and StdOutput

    Read the link I supplied in my previous reply.

    kind regards,

    Jos
  21. Replies
    4
    Views
    211

    Re: StdInput and StdOutput

    This can be a nice read: When Runtime.exec() won't | JavaWorld

    kind regards,

    Jos
  22. Re: Redrawing the ArrowButton of JComboBox in Nimbus LaF

    Setting the transformation to 'new AffineTransform()' sets the entire transformation to no rotation, no scaling and no translation (it's only a 2x2 matrix and a vector); it should work ...

    kind...
  23. Re: Redrawing the ArrowButton of JComboBox in Nimbus LaF

    Set an AffineTransform in the Graphics2D object that doesn't do anything (i.e. the identity transform)?

    kind regards,

    Jos
  24. Replies
    1
    Views
    163

    Re: PAlindrome in Java

    See what a StringBuilder can do for you.

    kind regards,

    Jos
  25. Replies
    2
    Views
    161

    Re: Increment array and got unexpecting result

    'B' should be printed: Java evaluates strictly from left to right, so array[0] should be assigned, i equals 1 now and the value to be assigned is 'A'+1.

    kind regards,

    Jos
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4