Search:

Type: Posts; User: goodguy

Search: Search took 0.13 seconds.

  1. Re: ZipEntry to InputStream or java.io.File. How?

    Well, I was wrong, the encryption was not a problem.
    I cannot even get the size of the entry. It always returns -1.
    I've managed to google out that it's because the size is written after the entry....
  2. Re: ZipEntry to InputStream or java.io.File. How?

    Yeah, I did it..
    I seem to have found the problem, it's my overtiredness. I forgot the XML file is XOR encrypted, that's why it can't read it
  3. ZipEntry to InputStream or java.io.File. How?

    Hi,
    I've spent many hours trying to find a solution to this problem, but all in vain.
    Here's the deal:
    I have a ZipInputStream, which I've even managed to get a ZipEntry from.
    I can get the size...
  4. Re: Can't form a simple POST or GET http request. No data returns.

    I've just found the problem myself.
    It was the question mark in my request string.
    This request:


    String request = "post_var=1";
    will work as a charm
  5. Can't form a simple POST or GET http request. No data returns.

    Hi,
    I'm having problems forming an http request in java.
    Here's what I do:

    I've got a simple php (java.php) file on my apache server, here's it's code:


    <?php
    $post_var =...
  6. Thread: Java or C++

    by goodguy
    Replies
    4
    Views
    1,219

    Re: Java or C++

    If your purpuse is to understand the principles of OOP, I'd recommend you to start it off with ActionScript 3. It's syntax is very similar to Java but it's much easier to understand if you never...
  7. Replies
    3
    Views
    1,300

    Re: Default system look and feel does not work

    I found what the problem was. Such a stupid blunder of mine :D
    I had to set up look and feel before creating a button:

    package differenttests;

    import java.awt.Point;
    import...
  8. Replies
    3
    Views
    1,300

    Re: Default system look and feel does not work

    I tried it. It looks like this:
    http://s57.radikal.ru/i157/1104/0b/baaf93e640e2.jpg

    With this code:

    package differenttests;

    import java.awt.Point;
    import javax.swing.JButton;
    import...
  9. Replies
    3
    Views
    1,300

    Default system look and feel does not work

    Hi,
    I'm trying to create a simple JFrame with a button on it, but I want this button to look like a native system one.
    Here's the code


    package tests;

    import java.awt.Button;
    import...
  10. Re: Did anyone write a video player for Android? Where did you get video codecs?

    Thanks :)
    But I suppose it will be something like a standard player, which doesn't support any major video formats.

    Maybe there's some non-android specific Java video encoders for DivX or XviD?...
  11. Did anyone write a video player for Android? Where did you get video codecs?

    Hi,
    I'm not writing any video players right now, it's just a pure curiosity :)
    So, what if I want to create one for Android, how can I find codecs for it?
    And how do I use them in my Java code?...
  12. Positioning elements. Is it possible without layouts?

    Hi all,

    I'm still trying to understand the logic of Java, and it feels like I'm getting stuck more and more :confused:

    Right now I wanna create a JFrame and add just one button to it. If I...
  13. Re: Abstract methods. What are they for? And when it's necessary to use them?

    Very good reply.

    As I'm just a beginner in Java, and I didn't get used to using any of these approaches, I'll follow your advice and try to get myself used to doing everything the right way :)
  14. Re: Abstract methods. What are they for? And when it's necessary to use them?

    Isn't there a way to check what type of object it is?

    If I do it in AS3 I typically use something like this:


    if (myArray[0] is MovieClip) {
    trace("I found a movie clip object");
    }...
  15. Fully automatic Content Assis in Eclipse. Is it possible?

    Hi all,

    I've found how to make content assist appear automatically when, e.g. I type the name of some class instance. It will show all public methods it contains and so on. But I want it to show...
  16. Re: Abstract methods. What are they for? And when it's necessary to use them?

    Ah, I got it now. Thanks a lot!

    Seems like I couldn't get it at first 'cause I got use to programming in ActionScript 3 which can push any types of object into the same array, so there's no need...
  17. Re: Abstract methods. What are they for? And when it's necessary to use them?

    Ok, but what if you just extend guessinggame without any abstract methods, and just create those methods from scratch in normal and test game classes? Wouldn't it do the same job?
  18. [Resolved] Abstract methods. What are they for? And when it's necessary to use them?

    Hi, first of all I'd like to wish a Merry Christmas and a Happy New Year to all who celebrates these holidays.

    And now, to my question.
    I'm watching video tutorials from bucky, and I just can't...
  19. Replies
    4
    Views
    2,494

    Re: A problem with command line compilation

    When I first installed Java to Program Files, it worked fine. But then I've read a recommendation (in one book) to install it into the root directory of disk C. I thought I would be a piece of cake...
  20. Replies
    4
    Views
    2,494

    Re: A problem with command line compilation

    Thanks for the reply :)
    But dash before jar didn't help either.
    The problem's still there




    I had a problem with path to jdk (which looked similar to this) when I first installed Eclipse,...
  21. Replies
    4
    Views
    2,494

    A problem with command line compilation

    Hey Everyone who reads this.

    I'm kind of new to Java, and right now I'm learning nuts and bolts of compilation and running apps process.
    So here's the problem. I have JRE and jdk1.6.0_20...
Results 1 to 21 of 21