Search:

Type: Posts; User: KevinWorkman

Page 1 of 20 1 2 3 4

Search: Search took 0.29 seconds; generated 34 minute(s) ago.

  1. Replies
    1
    Views
    56

    Re: an algorithm for drawing tiles...

    What you're talking about is called an isometric projection, and there are a ton of tutorials on it. Google is your friend.

    Here is one of the first results I found: Creating Isometric Worlds: A...
  2. Replies
    3
    Views
    74

    Re: Find the anniversary of a couple?

    You should really try to use standard naming conventions: classes start with an upper-case letter, methods and variables with a lower-case letter.

    Step through your code, either with a debugger or...
  3. Replies
    3
    Views
    74

    Re: Find the anniversary of a couple?

    What problems are you having? What do you expect this code to do? What does it do instead? Where exactly does this program's execution differ from your expectations?
  4. Replies
    16
    Views
    144

    Re: Array logic error

    Crossposted: java - Array count logic error - Stack Overflow
  5. Replies
    4
    Views
    144

    Re: GUI inside a GUI? :o

    It depends entirely on the game. You should make sure first.

    But it sounds like you're talking about two entirely different things- are you trying to embed an entire game inside your application?...
  6. Replies
    4
    Views
    144

    Re: GUI inside a GUI? :o

    Note that this is probably against the game's terms of service, unless specifically stated otherwise.
  7. Re: How to Write Program with out using control structures

    This is incredibly rude.

    Please read this before you post again: How To Ask Questions The Smart Way
  8. Re: How to make sure only one particular type of instance is open at a time.

    I'm not sure I understand your question.

    Are you talking about getting every window open from a single Java program?

    Are you talking about getting every window open from a Java program that can...
  9. Thread: sorting

    by KevinWorkman
    Replies
    1
    Views
    161

    Re: sorting

    Check out the Collections class. I'm surprised your googling didn't already point you there.
  10. Replies
    1
    Views
    78

    Re: Set up to play against computer

    Can you fix your code tags?

    And that's a lot of code to ask us to go through- you haven't even told us what the game is, or what exactly you're confused about. It's hard to answer general "how do...
  11. Replies
    1
    Views
    161

    Re: Rendering Levels

    This isn't really a question we can answer. The best thing I can tell you to do is to try out different approaches and see what works best for you.

    As for obfuscating your code, google is your...
  12. Re: How can I convert my program to an applet, so that I can embed it into HTML.

    Your best bet is probably to just link your jars then. You probably don't want to risk errors in your applet deployment (which might not be your fault) making your instructor give you a bad grade!
    ...
  13. Re: Fraction calculator prints correct answer but not in decimal

    You don't need that cast to float.

    The reason you have to cast to double is that this line:



    System.out.println(numeratorAnswer/denominatorAnswer);


    Is doing this:
  14. Re: How can I convert my program to an applet, so that I can embed it into HTML.

    Deploying as a jar just means having people download the jar and run it themselves. It wouldn't run directly in the browser.

    To deploy as a webstart, you need to do three things:

    1- Create your...
  15. Re: How can I convert my program to an applet, so that I can embed it into HTML.

    Unfortunately, webstart has the exact same problems that applets do.

    The OP might want to check it out, just because you can use it without modifying your code, but you'll still hit all of the...
  16. Re: How can I convert my program to an applet, so that I can embed it into HTML.

    You don't want to change your class from a JPanel to a JApplet.

    You want to create a new class that extends JApplet. Then you can add your existing JPanel to that JApplet.

    Unfortunately, there...
  17. Re: How can I convert my program to an applet, so that I can embed it into HTML.

    What compiler errors are you getting?

    The basics go like this: You'd replace your main JFrame with a class that extends JApplet. Put your content (probably a JPanel) into that JApplet instead of...
  18. Re: Practice of hiding unsafe methods through polymorphism

    That's a form of security.

    The best you can do is code to an interface and document your intentions. If this is for a library of some kind, make sure you have plenty of tutorials and code samples...
  19. Re: NoClassDefFoundError with java standard plaform class

    Well, there's your answer. It's not visible outside its package, so you can't use it outside its package.
  20. Replies
    3
    Views
    97

    Re: Tomcat performance

    Without seeing any code, there is no way for us to guess what's wrong.
  21. Replies
    11
    Views
    161

    [SOLVED] Re: undefined error in swing:

    That's a bit too much code to read, but this boils down to two questions:

    When do you create your database connection?

    How are you passing that instance around between classes?
  22. Re: Practice of hiding unsafe methods through polymorphism

    The short answer is: don't bother. Security through obfuscation is not security.

    Sure, return a reference to the ReadOnly interface, but only because that's what you should be doing anyway:...
  23. Replies
    11
    Views
    161

    [SOLVED] Re: undefined error in swing:

    Well, I'm not sure how all your pieces fit together, but I can point out these two lines:



    DataBaseConnection dataBaseConnection;
    Connection connect = dataBaseConnection.getConnection();

    ...
  24. Replies
    11
    Views
    161

    [SOLVED] Re: undefined error in swing:

    Hahaha no worries, it happens to the best of us.
  25. Replies
    11
    Views
    161

    [SOLVED] Re: undefined error in swing:

    You forgot the new keyword.

    MySQLDataBaseDAO dataBase = new MySQLDataBaseDAO(connect);
Results 1 to 25 of 499
Page 1 of 20 1 2 3 4