Skip to main content

자바FX 목차 자바FX 애플리케이션 예제 각주 외부 링크 둘러보기 메뉴www.oracle.com/technetwork/java/javase/overview/javafx-overview-2158620.html“1 JavaFX Overview (Release 8)”“OpenJFX Project”“JavaFX FAQ”자바FXOpenJFX websiteeheh

자바 언어JVM마이크로 에디션스탠더드 에디션엔터프라이즈 에디션자바 카드안드로이드 SDK애플릿서블릿MIDletJSP웹 스타트 (JNLP)자바 버전 역사자바 커뮤니티 프로세스썬 마이크로시스템즈자유 자바 구현체자바원Devoxx


자바 (프로그래밍 언어)오라클 소프트웨어


데스크톱 애플리케이션리치 인터넷 애플리케이션소프트웨어 플랫폼자바 SEGUI스윙마이크로소프트 윈도우리눅스macOS데스크톱 컴퓨터웹 브라우저












자바FX




위키백과, 우리 모두의 백과사전.






둘러보기로 가기
검색하러 가기





















자바FX




개발자

썬 마이크로시스템즈 (오라클에 인수)
발표일
2008년 12월 4일 (10년 전)(2008-12-04)

최근 버전
8[1] / 2014년 3월 18일 (5년 전)(2014-03-18)

운영 체제

자바 런타임 환경

플랫폼

크로스 플랫폼

언어

자바

종류

애플리케이션 프레임워크

라이선스

EULA, 부분적으로는 GPL+링크 예외[2]

웹사이트

www.oracle.com/technetwork/java/javase/overview/javafx-overview-2158620.html

자바FX(JavaFX)는 데스크톱 애플리케이션과 리치 인터넷 애플리케이션(RIA)을 개발하고 배포하는 소프트웨어 플랫폼으로, 다양한 장치에서 실행 가능하다. 자바FX는 자바 SE를 위한 표준 GUI 라이브러리로서 스윙을 대체하기 위해 고안되었다.[3] 자바FX는 마이크로소프트 윈도우, 리눅스, macOS의 데스크톱 컴퓨터와 웹 브라우저를 지원한다.




목차





  • 1 자바FX 애플리케이션 예제

    • 1.1 예제 코드



  • 2 각주


  • 3 외부 링크




자바FX 애플리케이션 예제



예제 코드


다음은 단순한 자바FX 기반 프로그램을 나타낸 것이다. 버튼이 포함된 창(stage)을 표시한다.




자바FX의 헬로 월드 프로그램.


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

@Override
public void start(Stage primaryStage)
// Creating the java button
Button btn = new Button();
// Setting text to button
btn.setText("Hello World");
//registering a handler for button
btn.setOnAction((ActionEvent event) ->
// printing Hello World! to the console
System.out.println("Hello World!");
);
// Initializing the StackPane class
StackPane root = new StackPane();
// Adding all the nodes to the FlowPane
root.getChildren().add(btn);
//Creating a scene object
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();


/**
* @param args the command line arguments
*/
public static void main(String[] args)
launch(args);





각주




  1. “1 JavaFX Overview (Release 8)”. 《Docs.oracle.com》. 2016년 8월 1일에 확인함. 


  2. “OpenJFX Project”. 오라클. 2011년 12월 7일에 확인함. 


  3. “JavaFX FAQ”. 《Oracle.com》. 2016년 8월 1일에 확인함. 




외부 링크



  • 자바FX - 공식 웹사이트

  • OpenJFX website










원본 주소 "https://ko.wikipedia.org/w/index.php?title=자바FX&oldid=23435502"










둘러보기 메뉴


























(RLQ=window.RLQ||[]).push(function()mw.config.set("wgPageParseReport":"limitreport":"cputime":"0.196","walltime":"0.471","ppvisitednodes":"value":1335,"limit":1000000,"ppgeneratednodes":"value":0,"limit":1500000,"postexpandincludesize":"value":38230,"limit":2097152,"templateargumentsize":"value":4295,"limit":2097152,"expansiondepth":"value":22,"limit":40,"expensivefunctioncount":"value":0,"limit":500,"unstrip-depth":"value":0,"limit":20,"unstrip-size":"value":7622,"limit":5000000,"entityaccesscount":"value":1,"limit":400,"timingprofile":["100.00% 403.954 1 -total"," 19.40% 78.368 1 틀:각주"," 18.01% 72.760 1 틀:소프트웨어_정보"," 15.85% 64.038 16 틀:정보상자_선택칸"," 15.55% 62.797 3 틀:웹_인용"," 9.37% 37.839 2 틀:시작_날짜와_나이"," 8.46% 34.186 2 틀:둘러보기_상자"," 7.38% 29.797 2 틀:이전_시간"," 6.56% 26.501 2 틀:이전_시간/core"," 6.21% 25.078 1 틀:공식_웹사이트"],"scribunto":"limitreport-timeusage":"value":"0.053","limit":"10.000","limitreport-memusage":"value":2715505,"limit":52428800,"cachereport":"origin":"mw1241","timestamp":"20190727045446","ttl":2592000,"transientcontent":false););"@context":"https://schema.org","@type":"Article","name":"uc790ubc14FX","url":"https://ko.wikipedia.org/wiki/%EC%9E%90%EB%B0%94FX","sameAs":"http://www.wikidata.org/entity/Q2270514","mainEntity":"http://www.wikidata.org/entity/Q2270514","author":"@type":"Organization","name":"uc704ud0a4ubbf8ub514uc5b4 ud504ub85cuc81dud2b8 uae30uc5ecuc790","publisher":"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":"@type":"ImageObject","url":"https://www.wikimedia.org/static/images/wmf-hor-googpub.png","datePublished":"2017-03-19T07:06:00Z","dateModified":"2019-01-08T02:19:19Z"(RLQ=window.RLQ||[]).push(function()mw.config.set("wgBackendResponseTime":169,"wgHostname":"mw1246"););

Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript