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 {
Type: Posts; User: Nicken99
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 {
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[]...
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...
It is the whole error... and the whole code. Just look under: "The Error / Console"
My "program" won't run. It just shows an error.
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...
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...
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...
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) {
...
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...
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...
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.
...