Amit Gujjar
Amit Gujjar

Reputation: 681

What is equivalent of FXLocal.getContext() in javafx 2.1?

What is equivalent method of this in javafx 2.1? What is use of this? Please give brief explanation. Code of javafx 1.3 is here..

  def context = FXLocal.getContext();

Upvotes: 1

Views: 216

Answers (1)

jewelsea
jewelsea

Reputation: 159416

It gets a context for querying class and object metadata for the virtual machine. It can be used both similarly to the Java reflection classes and also as a low level API a debugger can integrate with to debug a program.

The most common thing you would do in a Java analog of this is perform reflection, for which you can read this tutorial.

For info on the far less common and technically hardcore debugger interface, you could google com.sun.jdi.VirtualMachine.

Upvotes: 1

Related Questions