1 개요[ | ]
- JavaFX
- 자바FX
- "The Rich Client Platform"
- 데스크톱 애플리케이션과 리치 인터넷 애플리케이션(RIA)을 개발하고 배포하는 소프트웨어 플랫폼
- 크로스 플랫폼
- 자바 런타임 환경
- 자바 SE를 위한 표준 GUI 라이브러리
- 스윙을 대체하기 위해 고안됨
- JDK 11부터 JDK에서 분리됨[1]
2 예제[ | ]
Java
Copy
package javafxtuts;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class JavaFxTuts extends Application {
public JavaFxTuts()
{
//Optional constructor
}
@Override
public void init()
{
//By default this does nothing, but it
//can carry out code to set up your app.
//It runs once before the start method,
//and after the constructor.
}
@Override
public void start(Stage primaryStage) {
// Creating the Java button
final Button button = new Button();
// Setting text to button
button.setText("Hello World");
// Registering a handler for button
button.setOnAction((ActionEvent event) -> {
// Printing Hello World! to the console
System.out.println("Hello World!");
});
// Initializing the StackPane class
final StackPane root = new StackPane();
// Adding all the nodes to the StackPane
root.getChildren().add(button);
// Creating a scene object
final Scene scene = new Scene(root, 300, 250);
// Adding the title to the window (primaryStage)
primaryStage.setTitle("Hello World!");
primaryStage.setScene(scene);
// Show the window(primaryStage)
primaryStage.show();
}
@Override
public void stop()
{
//By default this does nothing
//It runs if the user clicks the go-away button
//closing the window or if Platorm.exit() is called.
//Use Platorm.exit() instead of System.exit(0).
//is called. This is where you should offer to
//save unsaved stuff the user has generated.
}
/**
* Main function that opens the "Hello World!" window
*
* @param args the command line arguments
*/
public static void main(final String[] arguments) {
launch(arguments);
}
}
3 영상 (1:00:04)[ | ]
4 같이 보기[ | ]
5 참고[ | ]
- http://www.oracle.com/technetwork/java/javase/overview/javafx-overview-2158620.html
- 위키백과 "자바FX"
- 다음백과 "자바FX"
네이버백과 "자바FX"
- ↑ https://blogs.oracle.com/java-platform-group/the-future-of-javafx-and-other-java-client-roadmap-updates The Future of JavaFX and Other Java Client Roadmap Updates 《Oracle》 Donald Smith 2018-03-07
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.
- 분류 댓글:
- 유튜브 영상 (46)
- Java (3)
4달러 ― Shinchan524Red Hot Chili Peppers - Blood Sugar Sex Magik ― John JeongSQLGate ― Andreas NeumannThe Smiths ―Pinkcrimson
The Smiths ― John JeongVangelis - Chariots Of Fire ―Pinkcrimson
VHS 재기록 반복 열화 실험 ― JmnoteVHS 재기록 반복 열화 실험 ―Pinkcrimson
VHS 재기록 반복 열화 실험 ― 민트쏟아What will your verse be? ― Jjw결론은 버킹검 ―Pinkcrimson
결론은 버킹검 ― John Jeong결론은 버킹검 ―Pinkcrimson
귀멸의 칼날 ―Pinkcrimson
기묘한 이야기 (미국 드라마) ―Pinkcrimson
동국대학교 디지털 큐레이션 ― Kim Taejin동국대학교 디지털 큐레이션 ―Pinkcrimson
따봉 ―Pinkcrimson
미운코딩새끼 ― 승호 도령미운코딩새끼 ― 불탄고등어미운코딩새끼 ― 김레이미운코딩새끼 ― 호박이미운코딩새끼 ― Junhg0211미운코딩새끼 ― 김왼손미운코딩새끼 ― 용딘이미운코딩새끼 ―Pinkcrimson
사전 보는 법 ―Pinkcrimson
사전 보는 법 ―Pinkcrimson
사전 보는 법 ―Pinkcrimson
위키백과, 우리 모두의 백과사전 ―Pinkcrimson
위키백과, 우리 모두의 백과사전 ―Pinkcrimson
유루캬라 ―Pinkcrimson
장현철 - 걸어서 하늘까지 ―Pinkcrimson
짙은 - 곁에 ― John Jeong최후의 사전편찬자들 ―Pinkcrimson
최후의 사전편찬자들 ―Pinkcrimson
최후의 사전편찬자들 ― John Jeong최후의 사전편찬자들 ―Pinkcrimson
최후의 사전편찬자들 ―Pinkcrimson
퇴사할 때 단톡방에 올리는 영상 ― Jjw파이썬 유치원 ― 김민재파이썬 유치원 (어린이반) ―안기웅
파이썬 유치원 (유아반) ― GreenElf파타고니아 (책) ―Pinkcrimson
파타고니아 (책) ― Nolon4파타고니아 (책) ―Pinkcrimson