Search:

Type: Posts; User: scorpas

Search: Search took 0.14 seconds.

  1. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    ok, done, this one is SOLVED.
    Big thanks to Norm. :)
  2. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    if i understand what u asking, then:
    i have array list of blocks (bricks).
    when an applet is running blocks are destroying by a ball collision. So yes, list are changing while the game is playing....
  3. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    i understand that, but can't figure out, how to load images only once.

    i do load same image for all blocks. and sometimes when the ball hits a block, errors appears:

    Exception in thread...
  4. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    sleep change the speed of an applet, but lag still remains.
    i guess it is something with repaint() method.
  5. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    Yeah. Finally, u are genius, man!!! \m/
    THANK YOU!

    It works, but its very laggy :D
    any ideas how to fix lag? :(
  6. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    an app for a PC (my task is to create something who works on Linux). Runnable from .jar file after double clicks on it.

    as I said, my images are in 'this_project/src/images' folder.
  7. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    display existing ones.

    the problem is, that i don't understand ur suggestion.

    my applet is in Main class...

    i tried to create in the Main class getCodeBase() and getDocumentBase() methods. ...
  8. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    is there any other ways/methods to draw images?
  9. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    package Zaidimas;

    import java.applet.AppletContext;
    import java.applet.AppletStub;
    import java.net.URL;

    public class MyStub implements AppletStub {
    Main applet = new Main();...
  10. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    first of all, i cant create constructor like that: applet = new YourApplet();
    that's the way how i create it: YourApplet applet = new YourApplet();
    but i got error here: yourApplet.setStub(new...
  11. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    damn, im just a rookie in programming, ur language is too good to understand for me ...


    package Zaidimas;

    import java.applet.AppletContext;
    import java.applet.AppletStub;
    import...
  12. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    Where can i find any example how those methods are useing?
  13. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    But i'm creating it not for the web or browsers...
    That just a simple java game, that will be runnable from .jar file.

    Anyway, i don't get it how i cant provide it.

    I need to use this method: ...
  14. [SOLVED] Re: Images works on an applet, but doesn't work when an applet is in a JFrame.

    ok, i did that.

    My JFrame works like that: I press run (Window) on Eclipse, JFrame appears, then i click Start button, and applet shows up in the same window.

    So it runs good, but when i press...
  15. [SOLVED] [SOLVED] Images works on an applet, but doesn't work when an applet is in a JFrame.

    Hi guys,
    i'm new here and i am new in java and using ECLIPSE.

    So, very shortly. The problem is explained in the title.

    In an applet my mini game looks like this: single Applet
    As u can see,...
Results 1 to 15 of 15