Skip to main content

getResource() in Javafx?

2 replies [Last post]
ngurah
Offline
Joined: 2008-10-31

I had problems to use getResource() in Javafx.....
im using NetBeans 6.0.
can give me some hint?
thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexsch
Offline
Joined: 2007-07-12
ngurah
Offline
Joined: 2008-10-31

I want to get Image from resource.

in NetBeans 6.1 in found to get Image from resource using

class MyModel{
public attribute imageUrl = this.getClass().getResource("Alti.png").toString();
}

var myModel = MyModel{};

but i'm confuse if using NetBeans 6.0.

thanks for the answer.