Search:

Type: Posts; User: bbr201

Page 1 of 2 1 2

Search: Search took 0.07 seconds.

  1. Thread: synchronization

    by bbr201
    Replies
    6
    Views
    2,038

    Re: synchronization

    Ahh, I think I see what you are saying. If it wasn't set up this way, it's actually possible that the separate thread could set isPaused to false AND execute notify() before the animator thread...
  2. Thread: synchronization

    by bbr201
    Replies
    6
    Views
    2,038

    Re: synchronization

    I think my problem is that I understand synchronization, but I'm not understanding how it works here.

    1. pauseGame() is called and isPaused is set to true.

    2. the animator thread will check...
  3. Thread: synchronization

    by bbr201
    Replies
    6
    Views
    2,038

    Re: synchronization

    I have a basic understanding of a mutex, but not a lot of hands on experience with threads in general. Basically, my understanding is that all code in synchronized blocks is known as the monitor, and...
  4. Thread: synchronization

    by bbr201
    Replies
    6
    Views
    2,038

    Re: synchronization

    Oops, apparently the answer is yes, it does release the lock. But what is the point of synchronizing anything? According to the author, a boolean cannot be read by one thread and changed by another...
  5. Thread: synchronization

    by bbr201
    Replies
    6
    Views
    2,038

    synchronization

    hi all,

    i haven't worked with threads much, and i have a question about how synchronzied would work in this situation. here is a stripped down example of a game class:

    public class GamePanel...
  6. Thread: I'm lost

    by bbr201
    Replies
    2
    Views
    1,460

    Re: I'm lost

    hi stoptheerrors,

    A quick glance at your code reveals many problems. A few things catch my eye right away. First, I've never seen a main with a parameter other than args. The command line...
  7. Replies
    26
    Views
    14,709

    Re: 2D Java Applet Games

    Ack, I think this is a bit of a problem for me. I would hate to dedicate so much effort into JOGL for a browser game. I would also hate to dedicate so much effort into Java3D if it is no longer...
  8. Replies
    26
    Views
    14,709

    Re: 2D Java Applet Games

    It's called Pro Java 6 3D Game Development. Might want to look into why there are 1 star reviews, though.

    Here you go: Amazon.com: Pro Java 6 3D Game Development: Java 3D, JOGL, JInput and JOAL...
  9. Replies
    26
    Views
    14,709

    Re: 2D Java Applet Games

    The author has a new book which came out in 2007; I think it's more focused on 3D. For some reason, it only has a 3 star review on amazon. Anyway, check this out:

    Differences from KGPJ
  10. Replies
    26
    Views
    14,709

    Re: 2D Java Applet Games

    Oh yeah, I'm going to start with 2D stuff first. It's just that the book says it uses Java 3D for 15 chapters or so, which I imagine is most of it. I was really planning on creating a game people...
  11. Replies
    26
    Views
    14,709

    Re: 2D Java Applet Games

    Thanks, I bought "Killer Game Programming in Java". Just a quick question: Does the user require anything more than a standard JRE if I make use of Java3D? If so, this seems like a bit of a hassle.
  12. Re: Basic program which gets cost, adds tax, gets payment then calculates change.

    tax, cost, and payment are instance variables. This means that every Change object created will have its own copy of these variables. If you include the static keyword in the declaration, these...
  13. Replies
    26
    Views
    14,709

    Re: 2D Java Applet Games

    Thanks for the reply. I know that "gaming" and "Java" are usually not described as the best combination, but I think that is mostly in regards to resource heavy games and not browser games. For...
  14. Replies
    26
    Views
    14,709

    2D Java Applet Games

    Are java applets still a frequent choice for browser games? Or would you say that something like flash has mostly taken over this aspect?

    I ask because I am considering looking into creating a 2D...
  15. Replies
    2
    Views
    2,435

    Re: interface class ActionListener

    What more needs to be said? You should probably provide more information about what type of information you are looking for.

    If you are just looking to fill space for a homework assignment or...
  16. Replies
    5
    Views
    3,277

    Re: CVS features in Eclipse

    Not sure, I've never heard of it. I guess my only questions would be: is this only managed through windows explorer or could it be configured to work with eclipse? and also, I guess I wouldn't be...
  17. Replies
    3
    Views
    1,331

    Re: newbie question about Abstract methods

    Well, if the class is abstract, then you can't instantiate it. So, is it possible this abstract class is extended somewhere where the authorizeGet() method is implemented?
  18. Replies
    5
    Views
    3,277

    CVS features in Eclipse

    hi all,

    I've never used CVS before and I'm just trying to experiment with the features in Eclipse. Is it most common for a CVS server to be running on linux? I've read that CVSNT is a free CVS...
  19. Replies
    5
    Views
    2,822

    Re: IDE (Visual Editor)

    Ahh, I see. Is it common to see entire GUI applications written "by hand" and without the use of a Visual Editor? According to Sun's java tutorial this can be a very "challenging" experience and I...
  20. Replies
    5
    Views
    1,854

    Re: Why am I getting this output?

    And you added the breaks for the second switch statement also?

    switch(j){
    case 1: card = card.concat("of Hearts"); break;
    case 2: card = card.concat("of Diamonds"); break;
    ...

    If so,...
  21. Replies
    5
    Views
    2,822

    IDE (Visual Editor)

    hi all,

    Can anyone advise on which IDE/Visual Editor is used most commonly in professional settings for GUI application development?

    It seems as though Eclipse is by far the most popular IDE...
  22. Replies
    5
    Views
    1,854

    Re: Why am I getting this output?

    If you use switch/case you should add a break after every case, otherwise it will fall through to the other cases.

    switch(i){
    case 1: card = card.concat("Two "); break;

    case 2: card =...
  23. Replies
    50
    Views
    6,935

    Re: Help with programe please

    I didn't look at the code in detail at all, but I see this:


    //THIS IS THE ERROR I AM GETTING "Cannot instantiate the type BankAccount"

    BankAccount acc = new BankAccount(name, amount);

    ......
  24. Replies
    2
    Views
    3,440

    Re: swing - switching JPanels

    Ahh, sweet. I didn't know about that CardLayout. It looks like that is exactly what it is designed for. Thanks.
  25. Replies
    2
    Views
    3,440

    swing - switching JPanels

    hi all,

    About to start working with swing for the first time and have a question. What is the best way to change between different views and/or modes in a program?

    For example, let's say I...
Results 1 to 25 of 45
Page 1 of 2 1 2