How do I make a class in JavaFX 2.0 a usable Node?
问题 I am new to JavaFX so please don't hesitate to explain basic concepts. I am able to create a simple GUI and I have a TabPane with two tabs in my program. My question is how do I create a class that can be used as a node? For example, tab.setContent(stuff) would add stuff to a tab , tab assuming of course that stuff is a Node . So let's say I create a class called Clock and want to add an instance of it to tab , how do I do such a thing? The clock should be a graphical object. I'm new to