-
Began Watching Please Mark as Solved.
I was just thinking about all of the unsolved threads, the ones that actually are solved, and I was thinking, maybe @Dani could add a 'Please Mark as Solved' button … -
Gave Reputation to emoon11 in lines of codes program
can you write code to read from file the count the LOC with out comment and blank -
Replied To a Post in number
Please keep in mind you then have to code everything you want to do with the final value in the f class. If you code it the way I showed … -
Began Watching number
i write code with class f that have constructor : public f(int number){ this.number=number; } i want to write method that get one f then add it with f which … -
Replied To a Post in number
So you have 2 classes, the main class containing the main method, and a class f? You also have 2 instances of class f, both with numbers passed into them … -
Created Displays the Wrong Data on Load.
Does clear use removeAll method for listViews? I have a program that reads a file and stores the data in multiple arrays. I then use that data from the arrays … -
Began Watching Displays the Wrong Data on Load.
Does clear use removeAll method for listViews? I have a program that reads a file and stores the data in multiple arrays. I then use that data from the arrays … -
Marked Solved Status for JavaFX ListView SelectedIndexChanged AIOOB
Okay, so I have a ListView populated by an Array, which is populated by a text file. I also have 3 TextBoxes which are changed to different values in multiple … -
Marked Solved Status for 2D Side Scroller Collision Detection
I am trying to determine collision in a 2D Side Scroller environment using Rectangles. However, the way most people do it is to get the bounds of the Tile. I … -
Replied To a Post in 2D Side Scroller Collision Detection
Makes sense, however how would you check that with a player? The player would be moving, so how would you determine which object is the closest since you wouldnt just … -
Created JavaFX ListView SelectedIndexChanged AIOOB
Okay, so I have a ListView populated by an Array, which is populated by a text file. I also have 3 TextBoxes which are changed to different values in multiple … -
Began Watching JavaFX ListView SelectedIndexChanged AIOOB
Okay, so I have a ListView populated by an Array, which is populated by a text file. I also have 3 TextBoxes which are changed to different values in multiple … -
Created 2D Side Scroller Collision Detection
I am trying to determine collision in a 2D Side Scroller environment using Rectangles. However, the way most people do it is to get the bounds of the Tile. I … -
Began Watching 2D Side Scroller Collision Detection
I am trying to determine collision in a 2D Side Scroller environment using Rectangles. However, the way most people do it is to get the bounds of the Tile. I … -
Marked Solved Status for Game Takes away TOO much Gold
So I have a button which adds a "Miner" then removes the cost of the Miner. The problem is that it is taking away too much, double the cost, and … -
Marked Solved Status for KeyBoard Input Not Responding [Custom Game Engine]
When I run the game and try to use the Arrow keys to control the movement of the selection box, nothing happens. I'm pretty sure the game is redrawing itself … -
Created Game Takes away TOO much Gold
So I have a button which adds a "Miner" then removes the cost of the Miner. The problem is that it is taking away too much, double the cost, and … -
Began Watching Game Takes away TOO much Gold
So I have a button which adds a "Miner" then removes the cost of the Miner. The problem is that it is taking away too much, double the cost, and … -
Marked Solved Status for Application Doesn't Terminate In Eclipse On Close
Could someone give me a few reasons why an Application isn't terminating on close? `*THIS IS FOR A JavaFX APPLICATION*` -
Replied To a Post in Application Doesn't Terminate In Eclipse On Close
What do you mean "ordinary instance variable"? -
Replied To a Post in JavaFX Label setText NullPointer
You can use the `AnimationTimer` but I chose not to because it compliments dynamic time steps over fixed time steps. I'll check out what `Timeline` is. EDIT: `Timeline` is used … -
Replied To a Post in Application Doesn't Terminate In Eclipse On Close
If I use `primaryStage.setOnCloseRequest()` then I can't close my java.util.Timer. The error it gives is "Cannot refer to a non-final variable timer inside an inner class defined in a different … -
Created Application Doesn't Terminate In Eclipse On Close
Could someone give me a few reasons why an Application isn't terminating on close? `*THIS IS FOR A JavaFX APPLICATION*` -
Began Watching Application Doesn't Terminate In Eclipse On Close
Could someone give me a few reasons why an Application isn't terminating on close? `*THIS IS FOR A JavaFX APPLICATION*` -
Marked Solved Status for JavaFX Label setText NullPointer
This is PART of my GoldMiner class where the problem is occuring. I am getting a null pointer. I assume it is because of the way I declared my sceneController … -
Replied To a Post in JavaFX Label setText NullPointer
Okay, and I put it in the start method. I did, and nothing. I even tried putting the ActionListener and Timer outside of the start method, and just called timer.start(); … -
Replied To a Post in JavaFX Label setText NullPointer
Alright, so I removed the loop completely. I implemented a SwingTimer Timer timer; ActionListener listener; listener = new ActionListener() { public void actionPerformed(ActionEvent e) { if(sceneController.game == null) sceneController.game = … -
Replied To a Post in JavaFX Label setText NullPointer
I tried moving all the code from the tick inside the start method which didnt do anything. EDIT: I managed to get it working, however my values are not updating … -
Replied To a Post in JavaFX Label setText NullPointer
I did, I managed to get the program running without error by calling the controller directly (`sceneController.total....`) however the program stops responding immediately. private static void tick() { long lastTime … -
Replied To a Post in JavaFX Label setText NullPointer
Im calling everything from the main method. I managed to print which is null, and I was doing it like System.out.println(controller); System.out.println(controller.totalGoldLabel); System.out.println(game); System.out.println(game.getTotalGold()); But I only got 1 returned … -
Replied To a Post in JavaFX Label setText NullPointer
What do you mean Stultuske? `System.out.println();` is not printing, is it because it is a JavaFX Application? So I cannot find which is null. The error is being produced from … -
Marked Solved Status for JavaFX The Constructor PerspectiveCamera(boolean) is Undefined.
`final PerspectiveCamera camera = new PerspectiveCamera(true);` The constructor PerspectiveCamera(boolean) is undefined. http://download.java.net/jdk8/jfxdocs/javafx/scene/PerspectiveCamera.html Clearly says that it can accept a boolean for "verticalFieldOfView" Why is Java giving me this error? -
Created JavaFX Label setText NullPointer
This is PART of my GoldMiner class where the problem is occuring. I am getting a null pointer. I assume it is because of the way I declared my sceneController … -
Began Watching JavaFX Label setText NullPointer
This is PART of my GoldMiner class where the problem is occuring. I am getting a null pointer. I assume it is because of the way I declared my sceneController … -
Marked Solved Status for JavaFX FXMLLoader.load();
Cannot get FXMLLoader to load this fxml. Error: Feb 19, 2014 11:25:01 PM com.github.geodox.goldminer.GoldMiner start SEVERE: null java.lang.NullPointerException: Location is required. at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2825) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2809) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2795) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2782) at … -
Replied To a Post in JavaFX FXMLLoader.load();
Solved, FXML need to be in bin directory, and forgot the / at the beginning on the path on line 24. -
Created JavaFX FXMLLoader.load();
Cannot get FXMLLoader to load this fxml. Error: Feb 19, 2014 11:25:01 PM com.github.geodox.goldminer.GoldMiner start SEVERE: null java.lang.NullPointerException: Location is required. at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2825) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2809) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2795) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2782) at … -
Began Watching JavaFX FXMLLoader.load();
Cannot get FXMLLoader to load this fxml. Error: Feb 19, 2014 11:25:01 PM com.github.geodox.goldminer.GoldMiner start SEVERE: null java.lang.NullPointerException: Location is required. at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2825) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2809) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2795) at javafx.fxml.FXMLLoader.load(FXMLLoader.java:2782) at … -
Replied To a Post in JavaFX The Constructor PerspectiveCamera(boolean) is Undefined.
Thanks for the reply, will mark as solved as soon as I test it. -
Replied To a Post in JavaFX The Constructor PerspectiveCamera(boolean) is Undefined.
Java Version 7 Update 51. JFX Library added from "C:\Program Files\Java\jdk1.7.0_51\jre\lib\jfxrt.jar" Am I missing a Jar? -
Created JavaFX The Constructor PerspectiveCamera(boolean) is Undefined.
`final PerspectiveCamera camera = new PerspectiveCamera(true);` The constructor PerspectiveCamera(boolean) is undefined. http://download.java.net/jdk8/jfxdocs/javafx/scene/PerspectiveCamera.html Clearly says that it can accept a boolean for "verticalFieldOfView" Why is Java giving me this error? -
Began Watching JavaFX The Constructor PerspectiveCamera(boolean) is Undefined.
`final PerspectiveCamera camera = new PerspectiveCamera(true);` The constructor PerspectiveCamera(boolean) is undefined. http://download.java.net/jdk8/jfxdocs/javafx/scene/PerspectiveCamera.html Clearly says that it can accept a boolean for "verticalFieldOfView" Why is Java giving me this error? -
Replied To a Post in 3D Perspective of Color
Alright, was just wondering. Didn't want to learn it if I didn't have to at the moment. -
Replied To a Post in 3D Perspective of Color
Before I start, is there a way to do it with the standard libraries? I know I could do it in 2D, which would require more code. And it would … -
Replied To a Post in 3D Perspective of Color
I was basically going to make a cube 255, 255, 255. And probably have something along the lines of a scroll possibly? Scroll in to make the pixels in the … -
Began Watching Why isn't my image loading on my JPanel??
Guys why is my image not loading on my JFrame?? BTW I am using eclipse on my mac. Code for Board : package ourgame; import java.awt.*; import java.awt.event.*; import javax.swing.*; … -
Replied To a Post in Why isn't my image loading on my JPanel??
He told you what code you needed to put in. > size/preferredSize/minimumSize setPreferredSize setMinimumSize setMaximumSize -
Replied To a Post in 3D Perspective of Color
So it would be possible, but how would you solve the hard to see problem? Could you just use transparency? -
Created 3D Perspective of Color
Alright, so I am thinking about an idea of a useless application, however it is interesting me. A 3D "perspective" of color. I know, confusing. But think of it this … -
Began Watching 3D Perspective of Color
Alright, so I am thinking about an idea of a useless application, however it is interesting me. A 3D "perspective" of color. I know, confusing. But think of it this …
The End.