Search:

Type: Posts; User: KevinWorkman

Page 1 of 20 1 2 3 4

Search: Search took 0.56 seconds; generated 7 minute(s) ago.

  1. Replies
    1
    Views
    2

    Re: JList - Learning Java

    What makes you think you did something wrong? What does this code do? Does it compile? Does it run? Does it exhibit some strange behavior? Something else?
  2. Replies
    2
    Views
    3

    Re: Java error

    Where is your SSCCE? It's pretty hard to debug if we can't see any code.
  3. Re: Is this code an API? Beginner learning to write an API and decoupling.

    Think about it this way: you implement interfaces that have already been compiled every time you implement an interface from the Java API itself. Providing your own API is exactly like that: you give...
  4. Replies
    4
    Views
    5

    Re: Is this syntax possible?

    What happened when you compiled it?

    It looks like you're just trying to access the indexes of charArray in your loop. Something like:


    for (int counter=o; counter <=10; counter++){
    char c...
  5. Re: Is this code an API? Beginner learning to write an API and decoupling.

    The term "API" is pretty broad, so the answer to your question is... sure, depending on your definition.

    Your "API" might consist of a single Board interface and a single BoardDraw class. You...
  6. Replies
    2
    Views
    3

    Re: Program Error - Please help

    What line is the NullPointerException on? What variable is null on that line?

    Step through your program with a debugger, or at least add some print statements, to answer that question. When you...
  7. Replies
    1
    Views
    2

    Re: Some actual work.

    The best thing to do might be to give yourself a little project to do. You say you specialize in 2D game development, so why not develop a game?

    Ludum Dare is this weekend: Ludum Dare

    But if...
  8. Re: Why does my lecturer use the key word ".this"

    Doh, can't believe I forgot the most common usage of the this keyword. Nice catch Cornix.
  9. Re: Why does my lecturer use the key word ".this"

    How is the keyword being used?

    One way you can use the this keyword is to pass a reference to yourself to another method. Something like:


    someMethod(this);


    The other use of the this...
  10. Re: Need help with very specific panel layout

    Doesn't Camickr's WrapLayout do exactly what you want?
  11. Replies
    1
    Views
    2

    Re: Help with 2d Array Code

    Post code in the form of an SSCCE, not a screenshot. We can't debug a screenshot.
  12. Re: Need help with very specific panel layout

    Interesting. Upon doing some more research, it turns out that the problem is with your FlowLayout. BorderLayout respect's the TOP component's preferred size, however, FlowLayout doesn't set its...
  13. Re: Need help with very specific panel layout

    Why doesn't the top panel grow using BorderLayout? Can you show us an SSCCE?

    BorderLayout seems reasonable, or BoxLayout maybe mixed with a JSplitPane in the center.
  14. Replies
    3
    Views
    4

    Re: Alternative method solutions

    Well, what does each method do? What happened when you stepped through it with a piece of paper and a pencil, or a debugger? Or just added some print statements?
  15. Replies
    9
    Views
    10

    Re: why wony my label show on gui

    Huh? Can you show us in the API a JFrame.set() method that takes a JLabel as an argument?
  16. Replies
    1
    Views
    2

    Re: Lets make some money!

    An expert in most things Java after only 5 years? You must be a fast learner! How did you learn Swing, Java EE, database programming, JSP, Android, JavaME, building, deployment, and support so fast?...
  17. Re: How to add all even numbers between 2 and a user input number which is included in the Addition

    You might want to look into the modulus operator for determining whether a number is even or odd.
  18. Re: How to add all even numbers between 2 and a user input number which is included in the Addition

    On each iteration of the loop, what number do you want to add to the sum?
  19. Replies
    9
    Views
    10

    Re: why wony my label show on gui

    Can you show us an SSCCE instead of an incomplete code snippet?
  20. Re: Any good websites to practice programming?

    You might want to check out Project Euler: https://projecteuler.net/

    Or you might think about giving yourself your own assignments: make a clone of an existing game (like Pong, not like call of...
  21. Replies
    3
    Views
    4

    Re: REGEX For Uppercase Alphanumeric

    If you're splitting it up into multiple regular expressions, which one is giving you trouble now?
  22. Replies
    1
    Views
    2

    Re: date and time

    What part of this are you having trouble with? Where are you stuck? How are you storing the dates in your code? Where is your small example program? (Not your whole project, just an SSCCE)
  23. Replies
    1
    Views
    2

    Re: i need help

    This question is way too broad for us to answer other than pointing you to google and the basic tutorials.

    Are you trying to create a command-line program? A GUI? A web-based program? Something...
  24. Re: Copy Selected Value from JComboBox to jTextField

    Cool. And did you check out the API for JComboBox?

    Here's a link to the API: Java Platform SE 8
  25. Re: Copy Selected Value from JComboBox to jTextField

    What is in your JComboBox? Strings? Objects? Images? Something else?

    Check out the API for JComboBox for methods that might give you the selected item...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4