Search:

Type: Posts; User: TripleChickenJumpman

Search: Search took 0.07 seconds; generated 11 minute(s) ago.

  1. Replies
    1
    Views
    1,279

    Simple Program Help

    Hello, I'm trying to learn the basics on how to make simple programs with Swing and I was wondering if anyone (most likely GregBrannon) would create an example program fro me. It's really helpful...
  2. Replies
    7
    Views
    1,051

    Re: Moving Selection

    Wow! That's great and pretty simple! I only have two questions...

    1. How do I set the JFrame to be in the middle of the screen? I usually just use JFrame.setLocationRelativeTo(null) and that works...
  3. Replies
    7
    Views
    1,051

    Re: Moving Selection

    Thanks!
  4. Replies
    7
    Views
    1,051

    Re: Moving Selection

    Could you give examples on how I could make it work?
  5. Replies
    7
    Views
    1,051

    Moving Selection

    Hello, i'm making a simple game where there's a 10x10 grid and you can move around a selection box and you can move around. Iv'e been trying to make the green selection box to move around but it...
  6. Re: Where To Start? : Java Game Programming

    I know pretty much the basics of java. Variables, statements, loops, frames, java classes like util awt and swing, and I just wanted to get to the next level and make some games with multiple classes...
  7. Where To Start? : Java Game Programming

    Hello all. I was just wondering if any of you have recommendations on where to start learning how to program simple games in java? I was looking around and I couldn't find much that I liked. Help is...
  8. Replies
    6
    Views
    1,238

    Re: Beginning java

    Nice! I've been learning for about a month now and I've went through many books. The thing is so many of them are hard to understand or I just don't like them for some reason. The book I recommend...
  9. Replies
    5
    Views
    1,426

    [SOLVED] Re: Simple GUI Error

    O! It's supposed to be [i]. Thanks!
  10. Replies
    5
    Views
    1,426

    [SOLVED] Re: Simple GUI Error

    Yes, that is the book i'm using (7th edition). And you said it should work but it doesn't. Here's what the console says :

    Exception in thread "main" java.lang.NullPointerException
    at...
  11. Replies
    5
    Views
    1,426

    [SOLVED] Simple GUI Error

    I coded all of this from what the book i'm reading said to do and I don't know what I did wrong. The majority of the code looks fine except for these two errors.



    import java.awt.*;
    import...
  12. [SOLVED] Re: Temperature Calculation Code Java

    You need to declare Fahrenheit as a variable. (ie float, int, long, byte...etc)
  13. Replies
    4
    Views
    1,807

    Classes/Object Beginner Help

    Hi, i'm just starting to learn to to make classes that work together and how to make objects in Java. I've read many articles and in a book on how to make and use these things but they all aren't...
  14. Java Console American Football Simulation Tutorial/Example

    This is a simple Football Simulator for Java beginners that is seen in a console.

    1. Create main integer and boolean variables. The scoring will be based off of touchdowns, field goals, and...
  15. [SOLVED] If Statements/Boolean Based Program Help

    Yep. I fixed it everything. Works Perfectly. Thanks for the help Greg! That was my first "big" program I did on my own and it turned out well. Friend request sent. SOLVED!
  16. [SOLVED] Re: [UNSOLVED] If Statements/Boolean Based Program Help

    public class Simulator {

    public static void main(String[] args) {
    int touchDown = 7;
    int fieldGoal = 3;
    int homeScore = 0;
    int awayScore = 0;
    String total = "Home: " + homeScore +...
  17. [SOLVED] Re: [UNSOLVED] If Statements/Boolean Based Program Help

    Sounds good but for your information I haven't got to methods yet so for now i'm going to try and avoid them while I can just for learning and comprehension purposes. But everything else like the...
  18. [SOLVED] Re: [UNSOLVED] If Statements/Boolean Based Program Help

    Will do.
  19. [SOLVED] Re: [UNSOLVED] If Statements/Boolean Based Program Help

    public class Simulator {

    public static void main(String[] args) {
    int touchDown = 7;
    int fieldGoal = 3;
    int homeScore = 0;
    int awayScore = 0;
    String total = "Home: " + homeScore +...
  20. [SOLVED] Re: [UNSOLVED] If Statements/Boolean Based Program Help

    Would you recommend a for loop? Because when I try a while loop it just goes insane forever.
  21. [SOLVED] Re: [UNSOLVED] If Statements/Boolean Based Program Help

    Thanks for the reply Greg. I've been researching about loops and I still cant seem to find out what's wrong with my code. Do I need to put the last two big loops at the beginning of the program?
  22. [SOLVED] While Statements/Boolean Based Program Help

    Hi, i'm new to coding with Java so keep that in mind. To practice I thought it would be a fun idea to create a super simple football simulator through the console that would just do a coin toss, then...
Results 1 to 22 of 22