Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is Sun's new Java scripting language?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

What this article shares to you is about Sun's new Java scripting language, which the editor thinks is very practical, so I share it with you to learn. I hope you can get something after reading this article.

Sun's new Java scripting language

F3 is the abbreviation of Form follows function. Sun is about to open source code for this project.

F3 is a declarative Java scripting language that uses static typing for better IDE support and compile-time errors (unlike Javascript), as well as type references, declarative syntax and automatic data binding, full support for 2D image interfaces and standard Swing components, as well as declarative animation. You can also reference the java class, create new java objects, call their methods, and implement the Java interface.

The project also designed plug-ins for Netbeans and Eclipse to support code checking, code completion, syntax highlighting, and hyperlink navigation.

F3 shows us that we have not fully tapped the capabilities of the Java platform in GUI development. With tool-supported F3, the Java platform is more competitive in GUI development than Macromedia Flash/Flex/Open Laszlo, Adobe Apollo, Microsoft WPF/XAML, Mozilla XUL, AJAX/DHMTL.

Example

Import f3.ui.*

Import f3.ui.canvas.*

Import f3.ui.filter.*

Canvas {

Content: Text {

X: 20

Y: 20

Content: "Welcome to F3"

Font: Font {face: VERDANA, style: [ITALIC, BOLD], size: 80}

Fill: LinearGradient {

X1: 0, y1: 0, x2: 0, y2: 1

Stops:

[Stop {

Offset: 0

Color: blue

}

Stop {

Offset: 0.5

Color: dodgerblue

}

Stop {

Offset: 1

Color: blue

}]

}

Filter: [Glow {amount: 0.1}, Noise {monochrome: true, distribution: 0}]

}

} this is what Sun's new Java scripting language is, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report