You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javafx
First does polymorphism exist in javaFX? I could not really fine any
examples on the site.
What I am trying to do is abstract out some of my GUI components. I
have a javafx file named Action.fx with a class defined in it. Later
I will have a list of actions and in the guil create a list of buttons
for each action. I want to do this through the Action interface. The
name attribute is just one example. But, i want to have operations.
Just as in Java I would implement methods to do this.
class Action {
attribute name;
operation getIcon() { }
}
class WizardAction extends Action {
attribute name = "Wizard"
operation getIcon() {
// return icon for wizard
}
}
The error I get is in WizardAction saying Action does not exist. it
is imported.
Can someone help me under stand how I can accomplish this. --or show
me some documentation on this.