13. JavaFX. 2 JavaFX Intro Sun's answer to –the popularity of scripting languages –problems with Java GUI AWT is very basic Swing is too complex, too.

Slides:



Advertisements
Similar presentations
JavaScript I. JavaScript is an object oriented programming language used to add interactivity to web pages. Different from Java, even though bears some.
Advertisements

Sue Wills July Objects The JavaScript language is completely centered around objects, and because of this, it is known as an Object Oriented Programming.
1 CGICGI Common Gateway Interface Server-side Programming Lecture.
1 CSC 551: Web Programming Spring 2004 client-side programming with JavaScript  scripts vs. programs  JavaScript vs. JScript vs. VBScript  common tasks.
Introduction To Java Objectives For Today â Introduction To Java â The Java Platform & The (JVM) Java Virtual Machine â Core Java (API) Application Programming.
Learning Web development. 3(+1) Tier architecture PHP script Remote services Web Server (Apache, IIS) Browser (IE, FireFox, Opera) Desktop (PC or MAC)
Working with JavaScript. 2 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page Working with Variables.
Introduction to Java Programming, 4E
Honors 101, Fall 2006 Please do not sit in back of room! Lots of info on web page Join the mailing list Download Eclipse and start using it Read the text.
Unity 3D game IDE 1.  Unity is a multi-platform, integrated IDE for scripting games, and working with 3D virtual worlds  Including:  Game engine ▪
DotNET A Developer’s Perspective Mike Litzkow University of Wisconsin - MadisonOne.
Developing User Interfaces (DUI) Chris North cs3724: HCI.
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
Chapter Objectives Explain Web page multimedia issues
Advanced OOP MCS-3 OOP BSCS-3 Lecture # 1
Introduction to Java Programming. Contents 1. Java, etc. 2. Java's Advantages 3. Java's Disadvantages 4. Types of Java Code 5. Java Bytecodes 6. Steps.
RIA Introduce Comparison among several technology.
Introduction to Java Programming with JBuilder 4
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
RIA & Adobe Flex Yunhui Fu 11/05/2008. What’s RIA RIA (Rich Internet Applications) –web applications which look and perform like desktop applications.
Lecturer PEN PHIROM Tel : Web site: Lecturer PEN PHIROM Tel :
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
GIS technologies and Web Mapping Services
Introduction to Silverlight. Slide 2 What is Silverlight? It’s part of a Microsoft Web platform called Rich Internet Applications (RIA) There is a service.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Programming Fundamentals 2: Background/ F II Objectives – –give a non-technical overview of Java Semester 2, Background.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Silverlight Technology. Table of Contents 1.What is Silverlight Technology? 2.Silverlight Overview. 2.1 How it works 2.2 Silverlight development tools.
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
XP Tutorial 10New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with JavaScript Creating a Programmable Web Page for North Pole.
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
Introduction to Java Programming with Forte Y. Daniel Liang.
2006 Adobe Systems Incorporated. All Rights Reserved. 1 Adobe RIA Technologies: Adobe Flex 3 Cornel Creanga Platform Evangelist
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
A New Approach to Java Clients Robert Buffone Chief Architect Nexaweb Technologies By
JavaScript Syntax, how to use it in a HTML document
Rich Internet Application
Introduction to Flex 2 by Rich Tretola. About Me Rich Tretola is a senior software developer at Herff Jones, Inc. specializing in Rich Internet Applications.
Contents : What is Silverlight? Silverlight Overview Silverlight Toolkit Overview Timeline & Packaging Silverlight V1.0 & V1.1 Properties of V1.0 Properties.
Internet Technologies1 Internet Technologies JavaFX.
Web Technologies Lecture 8 Server side web. Client Side vs. Server Side Web Client-side code executes on the end-user's computer, usually within a web.
Today… “Hello World” ritual. Brief History of Java & How Java Works. Introduction to Java class structure. But first, next slide shows Java is No. 1 programming.
Java – in context Main Features From Sun Microsystems ‘White Paper’
Unit-IV - Flash Player - Flex framework - MXML introduction - Action script introduction - Working with Action script - Flex data binding - Common UI components.
“The world’s most misunderstood language has become the world’s most popular programming language” Akshay Arora
PLATFORM A new platform that wants to be a new standard JavaFX
Rich Internet Applications 2. Core JavaScript. The importance of JavaScript Many choices open to the developer for server-side Can choose server technology.
Lesson 5 MULTIMEDIA. Multimedia on the Web has expanded rapidly as broadband connections have allowed users to connect at faster speeds. Almost all Web.
Microsoft Office 2008 for Mac – Illustrated Unit D: Getting Started with Safari.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
Introduction to Javascript. What is javascript?  The most popular web scripting language in the world  Used to produce rich thin client web applications.
CGS 3066: Web Programming and Design Spring 2016 Introduction to JavaScript.
PROGRAMMING USING PYTHON LANGUAGE ASSIGNMENT 1. INSTALLATION OF RASPBERRY NOOB First prepare the SD card provided in the kit by loading an Operating System.
Javascript Prof. Wenwen Li School of Geographical Sciences and Urban Planning 5644 Coor Hall
CSCI 3100 Tutorial 5 JavaScript & Ajax Jichuan Zeng Department of Computer Science and Engineering The Chinese University of Hong.
Introduction to Java Programming, 4E Y. Daniel Liang.
Technologies For Creating Rich Internet Applications Presenter's name
Introduction to Silverlight Development Pavel Yosifovich CTO, Matrix Global; Senior Instructor, Hi-Tech College
CGS 3066: Web Programming and Design Spring 2017
Rich Internet Application Frameworks: a Comparison of Flex, JavaFX, and Silverlight Hi, I am Minseung Kim, the topic that I am going to talk about is Rich.
JavaScript.
Introduction to Silverlight
Silverlight Technology
PHP.
About Multimedia Files
CS3220 Web and Internet Programming JavaScript Basics
F II 1. Background Objectives
Tutorial 10: Programming with javascript
CS3220 Web and Internet Programming JavaScript Basics
Presentation transcript:

13. JavaFX

2 JavaFX Intro Sun's answer to –the popularity of scripting languages –problems with Java GUI AWT is very basic Swing is too complex, too cumbersome, too voluminous and gained therefore little popularity –problems with RIA and multimedia in Java JavaSound is too low-level JMF (Java Media Framework) is virtually unsupported Java 2D is good, but follows different design than other media packages Image IO is good, also follows different design Java 3D is completely separate, self-contained software monolith Java never really made it to the desktop But, the building blocks are there

3 Building Blocks Java language itself –very popular over 6Mio. developers major industry support (IBM, Google, Oracle; almost everyone, except Microsoft) many universities adopted Java as prime teaching language most programming books now use Java –widely used server-side web programming cell phones TV set-top boxes Rich set of libraries, e.g., –Remote Method Invocation (RMI) –XML Web Services (JAX-WS). Applets –supported by most browsers either directly with tag or at least as using the Java plug-in –some PC's have Java pre-installed –but not as widely available as Flash WebStart –applets and applications can be downloaded to desktop

4 Features Separate scripting language "JavaFX Script" Multiplatform –browsers –desktop –cell phones –TV settop boxes Multimedia –text –GUI widgets –graphics in 2D and 3D –animations –audio and video Integration for graphic designers –Adobe Photoshop and Illustrator plugins for JavaFX direct manipulation of assets, animation paths, etc. Drag to install

5 Concepts Based on Java and Java tools –JDK Swing GUI –applets –Java plugin –WebStart Scripting-like, but compiled –efficient –no eval() support Supported by NetBeans IDE –preview –building into jar files with ant and jnlp files Scripts can –directly use Java classes (e.g. all of JDK)

6 JavaFX Script S yntax more like JavaScript then Java –less cryptic – function instead of method – var (resp. var for constants) instead of declaration via type Object-oriented –classes e.g., var home = Address {street: "1 Main Street"; city: "Honolulu"; zip: "HI 96813";} –inheritance e.g., var student = student {name: "John Wu"; address: home;} override function –properties –encapsulation public, (private is default), protected, package, public-read, public-init –anonymous function s e.g., action: function () {nextTick ()}

7 JavaFX Script Highlights Variables –can, but don't need to be typed –entire expressions can be "interpolated into a string using {expression} e.g., "4+5={4+5}" –strings can be enclosed in " as well as in ' Types – String, Number, Integer, Boolean, Duration, Void, Null e.g., var delay: Duration = 50ms // s, m, h also valid suffixes Boolean operators: not, and, or –Arrays and called Sequences var nums = [1..5]; // same as: var nums = [1,2,3,4,5]; various operations, such as appending, inserting, deleting elements, as well as subsequences Statements – for (variable in sequence) e.g., for (i in [1..10]) {…}

8 Binding Keyword bind associates a variable with the value of a bound expression –bound expressions variable expression function call – bound function –when the variable 's value changes, the code of the bound expression is re-evaluated Binding is used for –animation –handling interactions with GUI widgets e.g., transforms: Rotate {angle: bind seconds * 6} see: java.sun.com/javafx/1/tutorials/core/dataBinding/index.html java.sun.com/javafx/1/tutorials/core/dataBinding/index.html

9 Potential Problems On many PCs, applets are not installed –compare with Flash which has 90%+ penetration Downloading Java takes a lot of time –Swing packages are huge Java upgrades are relatively frequent –upgrades (= downloads) are necessary Competition: –Adobe Flex not free