Search:

Type: Posts; User: Nicken99

Search: Search took 0.12 seconds.

  1. Replies
    1
    Views
    1,174

    JList - Learning Java

    HI, I'm learning Java but I got a problem when I'm using JList - but I don't know what it is.

    My Main-Class:


    import javax.swing.JFrame;

    import GUI_JComboBox.Gui;

    public class Main {
  2. Replies
    1
    Views
    1,070

    Java JComboBox and Picture Problem

    Hi, I'm learning Java, but I'm getting an Error in my "program" - Please help me fix it.

    MY MAIN CLASS:

    import javax.swing.JFrame;

    public class Main {

    public static void main(String[]...
  3. Replies
    6
    Views
    1,439

    Re: Code doesn't work

    I tried to do this at those lines, but it didn't work.

    Icon b = new ImageIcon(getClass().getResource("C:\Users\Nicklas\Dropbox\Eclipse\WorkSpace Done\Code Reminder\src\b.png"));
    Icon x = new...
  4. Replies
    6
    Views
    1,439

    Re: Code doesn't work

    It is the whole error... and the whole code. Just look under: "The Error / Console"
  5. Replies
    6
    Views
    1,439

    Re: Code doesn't work

    My "program" won't run. It just shows an error.
  6. Replies
    6
    Views
    1,439

    Code doesn't work

    I can't see why my code aren't working. (I'm still learning Java)
    Please help me.

    The Error / Console:

    Exception in thread "main" java.lang.NullPointerException
    at...
  7. Replies
    1
    Views
    1,261

    Help me learn - Polymorphism

    Hey, I'm tring to learn Java, but i don't uderstand why I have do this:


    APFour bucky[] = new APFour[2];
    //This to define what we should use to call the methods. (bucky[0] and bucky[1] is...
  8. Replies
    2
    Views
    1,361

    Java Learning Help: JOptionPane / Listener

    Hey,

    I'm trying to learn Java (The GUI part right now), but my code won't do as intetden.
    What it should do:
    When I press enter in a field, then show the dialog (See fat text in code (Can't use...
  9. Replies
    6
    Views
    1,386

    Re: If Statement - Check for two thinks

    Thans Alot... I've learn so much. But every time i got my code right now - it shows the answer two times, how can i make it go away?

    Code:
    public static void main(String[] args) {
    ...
  10. Replies
    6
    Views
    1,386

    Re: If Statement - Check for two thinks

    Now I'm confused, (I'm from Denmark, and 14 years old, so I'm not perfect at English) I'm not sure that I'm using Scanners right now.
    If I'm wrong then please tell me. (Just like: "You are using...
  11. Replies
    6
    Views
    1,386

    Re: If Statement - Check for two thinks

    First, I couldn't have my whole code, cause I'm new.
    I'm making a small game and i'm trying to check for if the user types in the right answer, so i want to make it all lower case, before i check...
  12. Replies
    6
    Views
    1,386

    If Statement - Check for two thinks

    Hi, i got this problem.
    I'm trying to make an if statement check for this, at the same time:
    If the userInput is equal to some text and if a random number is greather than another random number.
    ...
Results 1 to 12 of 12