This content has been marked as final. Show 5 replies
I am not entirely sure what you are asking for, but if it is JavaFX Mobile related, development on that has been postponed for the time being.
If you are asking about manipulating the user-agent HTTP header that WebEngine uses when making requests, I can't see anything in the documentation that would allow that. But if all you want is a smaller display of a web page, you can always change WebView's scale or font scale settings.
D'Oh! You are correct. I was writing that from memory which has just proven itself to be ridiculously flawed!
I meant this:
final WebView browser = new WebView();
final WebEngine webEngine = new WebEngine("http://www.oracle.com");
Some websites check the user agent to determine if they are smart phones or not and reduce (compact) the size of the display/content for better usability. I thought it might be nice to try to take advantage of that if at all possible.
I guess it's not possible to set however. Going to http://whatsmyuseragent.com shows some nice information about the JavaFX web client.