Java Reference
In-Depth Information
textMessage.setEffect(dShadow);
textMessage.setFill(color);
textMessage.setFont(Font.font(null,
FontWeight.BOLD, 35));
textMessage.setTranslateY(50);
return textMessage;
}
} // end of the RespondingToHtmlEvents class
Figure 17-9 shows the weather application displaying a warning message after a
user has pressed the Panic button. To remove the warning message, you can press the
Calm Down button.
Figure 17-9 . Weather application displaying a warning message
How It Works
The example in this recipe adds features to the weather application (from Recipe 17-3)
that respond to HTML events. The application is similar to the previous recipe, except
that it contains HTML buttons on the web page to be rendered onto the WebView
 
 
Search WWH ::




Custom Search