Build Issues [message #1700062] |
Mon, 29 June 2015 22:03 |
Cameron Cunning Messages: 2 Registered: June 2015 |
Junior Member |
|
|
I've written a small battleship application with JavaFX8.
This is the first thing I've really done outside of assignments or tutorials, so I'd love feedback if anyone wants to offer it, although this is incidental to my real question.
https://github.com/ccunning2/MiasBattleShip
When I try to make a runnable jar with eclipse, it will successfully do so but it loses the background image have applied to some elements. Looking on stackoverflow, someone suggested that using e(fx)clipse was necessary. Is this the case, and if so, how do I add this to an existing project?
Furthermore, I'd ultimately like to get it built in self contained exe/mac app deployments. Does this require me to learn how to build an ant script or something, or is there an easier way?
EDIT: The image is loaded with the setStyle method, e.g
this.setStyle("-fx-background-image: url('resources/images/ship.jpg');");
[Updated on: Wed, 01 July 2015 14:04] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02938 seconds